Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
I noticed that in RestTemplate-based client, I'm getting error messages like
> curl -v http://localhost:8080/page-not-found (...) < HTTP/1.1 404 < Content-Type: application/json;charset=UTF-8
which will look like this:
Others return results like:
curl -v http://google.com/page-not-found (...) < HTTP/1.1 404 Not Found < Content-Type: text/html; charset=UTF-8
Which results in a nice looking error message:
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?
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