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
Added response HttpHeaders to HttpStatusCodeException and subclasses
Default HTTP errors from RestTemplate now include the response headers
in addition to the response body. In particular, this enables
inspection of the Content-Type header allowing manual deserialization
of the response body without guessing as to the content type.
* introduced HttpStatusCodeException#getResponseHeaders
* added constructor with headers param for HttpStatusCodeException,
HttpClientErrorException and HttpServerErrorException
* preserved exsisting constructor signatures
* marked HttpHeaders as Serializable
* generated new serialVersionUID where needed
Issue: SPR-7938
0 commit comments