-
Notifications
You must be signed in to change notification settings - Fork 40.8k
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
Error status code set by handler interceptor overriden with status code 500 #20025
Comments
Could you provide a sample application showing the issue? |
If you would like us to look at this issue, please provide the requested information. If the information is not provided within the next 7 days this issue will be closed. |
Closing due to lack of requested feedback. If you would like us to look at this issue, please provide the requested information and we will re-open the issue. |
Spring Boot 2.2.4
@Produces("application/x-protobuf")
.This returns an HTTP response with status code 500 and no body. After the fix of #19522, I expected status code 401 to be returned.
This seems to happen due to this code in
AbstractMessageConverterMethodProcessor
around line 316:producibleMediaTypes
contains the controller'sapplication/x-protobuf
, soHttpMessageNotWritableException
is thrown, which is turned into a 500 status code.The text was updated successfully, but these errors were encountered: