Skip to content

ResponseStatus.reason() ignored for @ExceptionHandler methods [SPR-7259] #11918

@spring-projects-issues

Description

@spring-projects-issues

Joris Kuipers opened SPR-7259 and commented

AnnotationMethodHandlerExceptionResolver#getModelAndView(...) only takes ResponseStatus#value() into consideration and ignores ResponseStatus#reason(). It should act like ResponseStatusExceptionResolver#resolveResponseStatus(...) and check if a reason is provided as well.


Affects: 3.0.2

Referenced from: commits 4764fa5

Metadata

Metadata

Assignees

Labels

in: webIssues in web modules (web, webmvc, webflux, websocket)type: bugA general bug

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions