• Brian Clozel's avatar
    Avoid 406 Not Acceptable for error pages · 2f78c72f
    Brian Clozel authored
    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-19545
    See gh-19522
    2f78c72f
Name
Last commit
Last update
..
spring-boot Loading commit data...
spring-boot-actuator Loading commit data...
spring-boot-actuator-autoconfigure Loading commit data...
spring-boot-autoconfigure Loading commit data...
spring-boot-cli Loading commit data...
spring-boot-dependencies Loading commit data...
spring-boot-devtools Loading commit data...
spring-boot-docs Loading commit data...
spring-boot-parent Loading commit data...
spring-boot-properties-migrator Loading commit data...
spring-boot-starters Loading commit data...
spring-boot-test Loading commit data...
spring-boot-test-autoconfigure Loading commit data...
spring-boot-tools Loading commit data...
pom.xml Loading commit data...