-
Notifications
You must be signed in to change notification settings - Fork 411
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
Labels
bug
Something isn't working
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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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: