Skip to content
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

ResourceWebHandler should throw ResponseStatusException when resources are not found [SPR-16023] #20572

spring-issuemaster opened this issue Sep 28, 2017 · 0 comments


None yet
2 participants
Copy link

commented Sep 28, 2017

Brian Clozel opened SPR-16023 and commented

Currently ResourceWebHandler handles directly the response when resources are not found, sending an HTTP 404 response.

This is technically correct but this prevents from dealing with those in a central place, like a WebExceptionHandler. This change is required for a global error handling mechanism such as the one in Spring Boot.

Reference URL: spring-projects/spring-boot#8625

Referenced from: commits 3febec3

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.