Skip to content

Add human-readable descriptions for statuc codes in HttpStatus [SPR-6614] #11280

@spring-projects-issues

Description

@spring-projects-issues

Kenny MacLeod opened SPR-6614 and commented

I'd like to see the values defined in the org.springframework.http.HttpStatus enum be extended to include human-readable descriptions of each code, as defined in the HTTP RFC. These could be retrieved using a getStatusDescription() method.

This is already implemented in Commons HttpClient (see http://hc.apache.org/httpclient-3.x/apidocs/org/apache/commons/httpclient/HttpStatus.html#getStatusText%28int%29), and it would good to see it in Spring also.


Affects: 3.0 GA

Referenced from: commits 4167770

Metadata

Metadata

Assignees

Labels

in: webIssues in web modules (web, webmvc, webflux, websocket)type: enhancementA general enhancement

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions