Class DefaultResponseErrorHandler

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

public class DefaultResponseErrorHandler extends Object implements ResponseErrorHandler
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(ClientHttpResponse) for more details on specific exception types.

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