Files
spring-boot/spring-boot-project
Brian Clozel cc154bbefb Avoid 406 Not Acceptable for error pages
Prior to this commit, the `ErrorController` would override the original
error response status if the error map cannot be written due to content
negotiation with the HTTP client. In that case, the error handling
infrastructure returns a `406 Not Acceptable` response.

This commit improves the `ErrorController` so that
`HttpMediaTypeNotAcceptableException` instances thrown by that
controller are not returned as is but instead we write the error
response with an empty body and the original HTTP error status.

Fixes gh-19522
2020-01-03 14:51:53 +01:00
..
2020-01-01 09:16:53 +01:00
2020-01-01 09:16:53 +01:00
2020-01-01 09:16:53 +01:00
2019-12-26 12:02:38 +01:00
2019-12-26 10:42:40 +01:00
2020-01-03 09:40:11 +01:00
2019-12-26 10:42:40 +01:00
2019-12-26 10:42:40 +01:00
2019-12-30 14:57:29 +01:00