Skip to content

Allow non-standard HttpStatus in reactive ServerHttpResponse #24400

@saad14092

Description

@saad14092

Affects: 5.2.1.RELEASE

in org.springframework.http.server.reactive.ServerHttpResponse we have the following method :

boolean setStatusCode(@Nullable HttpStatus status);
that is supposed to allow us to set the http status code for the response. The problem is that we can't use a simple int value and we have to pass through HttpStatus that cannot resolve non-standard Http status codes (498 in my case)

I've already asked on SO and apparently there is no way to make this work in the current release ?

Metadata

Metadata

Assignees

Labels

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

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions