You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Improve message for HttpStatusCodeException with empty status text #22162
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:
changed the title [-]HTTP error 404 from spring web causes "404 null" message in RestTemplate [SPR-17631][/-][+]Improve message for `HttpStatusCodeException` with null status text[/+]on Jan 23, 2019
changed the title [-]Improve message for `HttpStatusCodeException` with null status text[/-][+]Improve message for `HttpStatusCodeException` with empty status text[/+]on Jan 23, 2019
Activity
spring-projects-issues commentedon Dec 29, 2018
Jerzy Krolak commented
Here is an example test case: https://github.com/jerzykrlk/demo404/blob/master/src/test/java/com/example/demo/DemoApplicationTests.java#L47
[-]HTTP error 404 from spring web causes "404 null" message in RestTemplate [SPR-17631][/-][+]Improve message for `HttpStatusCodeException` with null status text[/+][-]Improve message for `HttpStatusCodeException` with null status text[/-][+]Improve message for `HttpStatusCodeException` with empty status text[/+]poutsma commentedon Jan 23, 2019
Thanks for providing a test case!
Improve message for HttpStatusCodeException with empty status text