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

MVC should respect @ResponseStatus on exceptions during mapping [SPR-12903] #17502

spring-issuemaster opened this issue Apr 10, 2015 · 0 comments


None yet
2 participants
Copy link

commented Apr 10, 2015

Christopher Smith opened SPR-12903 and commented

I am using a Converter<String,DomainObject> to directly inject @PathVariable parameters as rich domain objects. If the domain object is not found, I would like to throw a NotFoundException, which is annotated with @ResponseStatus(NOT_FOUND), but MVC treats all mapping exceptions as 400 errors regardless of any status annotation. If a converter or other mapping component throws an annotated exception, the status should be returned to the client.

Affects: 4.1.4

Referenced from: commits 26cfe57

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.