This error handler checks for the status code on the {@link ClientHttpResponse}: any code with series {@link org.springframework.http.HttpStatus.Series#CLIENT_ERROR} or{@link org.springframework.http.HttpStatus.Series#SERVER_ERROR} is considered to be anerror. This behavior can be changed by overriding the {@link #hasError(HttpStatus)}method. @author Arjen Poutsma @author Rossen Stoyanchev @since 3.0 @see RestTemplate#setErrorHandler
|
|
|
|