public interface ResponseErrorHandler
WebClient
to handle errors in
ClientHttpResponse
s if needed.DefaultResponseErrorHandler
Modifier and Type | Method and Description |
---|---|
void |
handleError(ClientHttpResponse response,
List<HttpMessageReader<?>> messageReaders)
Handle the error in the given response.
|
void handleError(ClientHttpResponse response, List<HttpMessageReader<?>> messageReaders)
HttpStatus
of the response and
throw WebClientException
s in case of errors.