Class DefaultResponseErrorHandler

java.lang.Object
org.springframework.web.client.DefaultResponseErrorHandler
All Implemented Interfaces:
ResponseErrorHandler
Direct Known Subclasses:
ExtractingResponseErrorHandler

@Deprecated(since="7.1", forRemoval=true) public class DefaultResponseErrorHandler extends Object implements ResponseErrorHandler
Deprecated, for removal: This API element is subject to removal in a future version.
Spring's default implementation of the ResponseErrorHandler interface.

This error handler checks for the status code on the ClientHttpResponse. Any code in the 4xx or 5xx series is considered to be an error. This behavior can be changed by overriding hasError(HttpStatusCode). Unknown status codes will be ignored by hasError(ClientHttpResponse).

See handleError(URI, HttpMethod, ClientHttpResponse) for more details on specific exception types.

Since:
3.0
Author:
Arjen Poutsma, Rossen Stoyanchev, Juergen Hoeller
See Also: