Improve message for HttpStatusCodeException
with empty status text
#22162
Labels
in: web
Issues in web modules (web, webmvc, webflux, websocket)
type: enhancement
A general enhancement
Milestone
Jerzy Krolak opened SPR-17631 and commented
I noticed that in RestTemplate-based client, I'm getting error messages like
404 null
and similar. Then I found that the Spring Boot application returns error statuses like the following:which will look like this:
org.springframework.web.client.HttpClientErrorException$NotFound: 404 null
Others return results like:
Which results in a nice looking error message:
org.springframework.web.client.HttpClientErrorException$NotFound: 404 Not Found
I'm not sure if I should raise is as a bug - it does not seem that the status message is mandatory.
Is this a bug, or a feature?
Affects: 5.1.3
Issue Links:
The text was updated successfully, but these errors were encountered: