-
Notifications
You must be signed in to change notification settings - Fork 38.3k
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
Allow non-standard HttpStatus in reactive ServerHttpResponse #24400
Comments
An |
@rstoyanchev I don't think so. I need to set the status code in a Which has a method |
Note that a pair of plain status accessors is available on |
@jhoeller Thanks for the tip. That should do the trick for the time being. |
Since this is now used as unofficial API (case here and also in Boot), we need to make sure |
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 ?
The text was updated successfully, but these errors were encountered: