Skip to content

@ResponseStatus: The reason value is not used. [SPR-7060] #11720

@spring-projects-issues

Description

@spring-projects-issues

Robert Pond opened SPR-7060 and commented

When using the @ResponseStatus annotation on a controller method, if you specify a value for reason such as

@ResponseStatus(value=HttpStatus.BAD_REQUEST, reason="More than 1000 results were returned. Please be more specific.")

The response still only writes out the default message for the Status, in this case it would be "The request sent was syntactically incorrect."


Affects: 3.0.1

Referenced from: commits 8a1a23a

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