Co-Authored-By: Claude Sonnet 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_017ic4b7M7FEdeEm3APj16Bu
18 lines
1.4 KiB
Plaintext
18 lines
1.4 KiB
Plaintext
# 02-error-defaults (Spring Boot 4.1.3, JDK 25)
|
|
GET /students/99 (404)
|
|
RestTemplate : org.springframework.web.client.HttpClientErrorException$NotFound
|
|
RestClient : org.springframework.web.client.HttpClientErrorException$NotFound
|
|
RestTemplate message : 404 on GET request for "http://localhost:<port>/students/99": "{"timestamp":"<time>","status":404,"error":"Not Found","path":"/students/99"}"
|
|
RestClient message : 404 Not Found: "{"timestamp":"<time>","status":404,"error":"Not Found","path":"/students/99"}"
|
|
same message: false
|
|
GET /boom (500)
|
|
RestTemplate : org.springframework.web.client.HttpServerErrorException$InternalServerError
|
|
RestClient : org.springframework.web.client.HttpServerErrorException$InternalServerError
|
|
RestTemplate message : 500 on GET request for "http://localhost:<port>/boom": "{"timestamp":"<time>","status":500,"error":"Internal Server Error","path":"/boom"}"
|
|
RestClient message : 500 Internal Server Error: "{"timestamp":"<time>","status":500,"error":"Internal Server Error","path":"/boom"}"
|
|
same message: false
|
|
connection refused (nothing listening)
|
|
RestTemplate : org.springframework.web.client.ResourceAccessException <- cause java.net.ConnectException
|
|
RestClient : org.springframework.web.client.ResourceAccessException <- cause java.net.ConnectException
|
|
204 No Content body: RestTemplate.getForObject -> null, RestClient.body(String.class) -> null
|