-
Notifications
You must be signed in to change notification settings - Fork 415
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Missing Authorization header is reported as 400 instead of 401 #3235
Comments
@weili96 without the endpoint definition, Idk what the issue is. Also, if you find a new bug, please open a new issue |
@987Nabil when i send , without header of authorization |
this is also without contentType |
/bounty $100 |
💎 $100 bounty • ZIOSteps to solve:
Thank you for contributing to zio/zio-http! Add a bounty • Share on socials
|
/attempt #3235
|
💡 @notxcain submitted a pull request that claims the bounty. You can visit your bounty board to reward. |
A missing
Authorization
header is reported with 400 instead of 401 status code when served by a route created using the declarative endpoint syntax.To Reproduce
Endpoint(PathCodec.Get).header(HeaderCodec.authorization)
.Authorization
header.Expected Behaviour
According to the RFC, in such case a response should have 401 Unauthorized code:
The text was updated successfully, but these errors were encountered: