# Uses of Class
org.springframework.web.client.RestClientException

Packages that use RestClientException
Package
Description
org.springframework.web.client
Core package of the client-side web support.

## Uses of RestClientException in org.springframework.web.client

Subclasses of RestClientException in org.springframework.web.client
Modifier and Type
Class
Description
`class`
`HttpClientErrorException`
Exception thrown when an HTTP 4xx is received.
`static final class`
`HttpClientErrorException.BadRequest`
`HttpClientErrorException` for status HTTP 400 Bad Request.
`static final class`
`HttpClientErrorException.Conflict`
`HttpClientErrorException` for status HTTP 409 Conflict.
`static final class`
`HttpClientErrorException.Forbidden`
`HttpClientErrorException` for status HTTP 403 Forbidden.
`static final class`
`HttpClientErrorException.Gone`
`HttpClientErrorException` for status HTTP 410 Gone.
`static final class`
`HttpClientErrorException.MethodNotAllowed`
`HttpClientErrorException` for status HTTP 405 Method Not Allowed.
`static final class`
`HttpClientErrorException.NotAcceptable`
`HttpClientErrorException` for status HTTP 406 Not Acceptable.
`static final class`
`HttpClientErrorException.NotFound`
`HttpClientErrorException` for status HTTP 404 Not Found.
`static final class`
`HttpClientErrorException.TooManyRequests`
`HttpClientErrorException` for status HTTP 429 Too Many Requests.
`static final class`
`HttpClientErrorException.Unauthorized`
`HttpClientErrorException` for status HTTP 401 Unauthorized.
`static final class`
`HttpClientErrorException.UnprocessableEntity`
`HttpClientErrorException` for status HTTP 422 Unprocessable Entity.
`static final class`
`HttpClientErrorException.UnsupportedMediaType`
`HttpClientErrorException` for status HTTP 415 Unsupported Media Type.
`class`
`HttpServerErrorException`
Exception thrown when an HTTP 5xx is received.
`static final class`
`HttpServerErrorException.BadGateway`
`HttpServerErrorException` for HTTP status 502 Bad Gateway.
`static final class`
`HttpServerErrorException.GatewayTimeout`
`HttpServerErrorException` for status HTTP 504 Gateway Timeout.
`static final class`
`HttpServerErrorException.InternalServerError`
`HttpServerErrorException` for status HTTP 500 Internal Server Error.
`static final class`
`HttpServerErrorException.NotImplemented`
`HttpServerErrorException` for status HTTP 501 Not Implemented.
`static final class`
`HttpServerErrorException.ServiceUnavailable`
`HttpServerErrorException` for status HTTP 503 Service Unavailable.
`class`
`HttpStatusCodeException`
Abstract base class for exceptions based on an `HttpStatusCode`.
`class`
`ResourceAccessException`
Exception thrown when an I/O error occurs.
`class`
`RestClientResponseException`
Common base class for exceptions that contain actual HTTP response data.
`class`
`UnknownContentTypeException`
Raised when no suitable `HttpMessageConverter` could be found to extract the response.
`class`
`UnknownHttpStatusCodeException`
Exception thrown when an unknown (or custom) HTTP status code is received.
Method parameters in org.springframework.web.client with type arguments of type RestClientException
Modifier and Type
Method
Description
`void`
ExtractingResponseErrorHandler.`setSeriesMapping(Map<HttpStatus.Series,Class<? extends RestClientException>> seriesMapping)`
Set the mapping from HTTP status series to `RestClientException` subclass.
`void`
ExtractingResponseErrorHandler.`setStatusMapping(Map<HttpStatusCode,Class<? extends RestClientException>> statusMapping)`
Set the mapping from HTTP status code to `RestClientException` subclass.
Methods in org.springframework.web.client that throw RestClientException
Modifier and Type
Method
Description
`void`
RestOperations.`delete(String url, Object... uriVariables)`
Delete the resources at the specified URI.
`void`
RestOperations.`delete(String url, Map<String,?> uriVariables)`
Delete the resources at the specified URI.
`void`
RestOperations.`delete(URI url)`
Delete the resources at the specified URL.
`void`
RestTemplate.`delete(String url, Object... uriVariables)`
`void`
RestTemplate.`delete(String url, Map<String,?> uriVariables)`
`void`
RestTemplate.`delete(URI url)`
`protected <T> T`
RestTemplate.`doExecute(URI url, String uriTemplate, HttpMethod method, RequestCallback requestCallback, ResponseExtractor<T> responseExtractor)`
Execute the given method on the provided URI.
`protected <T> T`
RestTemplate.`doExecute(URI url, HttpMethod method, RequestCallback requestCallback, ResponseExtractor<T> responseExtractor)`
Deprecated.
in favor of `RestTemplate.doExecute(URI, String, HttpMethod, RequestCallback, ResponseExtractor)`
`<T> ResponseEntity<T>`
RestOperations.`exchange(String url, HttpMethod method, HttpEntity<?> requestEntity, Class<T> responseType, Object... uriVariables)`
Execute the HTTP method to the given URI template, writing the given request entity to the request, and return the response as `ResponseEntity`.
`<T> ResponseEntity<T>`
RestOperations.`exchange(String url, HttpMethod method, HttpEntity<?> requestEntity, Class<T> responseType, Map<String,?> uriVariables)`
Execute the HTTP method to the given URI template, writing the given request entity to the request, and return the response as `ResponseEntity`.
`<T> ResponseEntity<T>`
RestOperations.`exchange(String url, HttpMethod method, HttpEntity<?> requestEntity, org.springframework.core.ParameterizedTypeReference<T> responseType, Object... uriVariables)`
Execute the HTTP method to the given URI template, writing the given request entity to the request, and return the response as `ResponseEntity`.
`<T> ResponseEntity<T>`
RestOperations.`exchange(String url, HttpMethod method, HttpEntity<?> requestEntity, org.springframework.core.ParameterizedTypeReference<T> responseType, Map<String,?> uriVariables)`
Execute the HTTP method to the given URI template, writing the given request entity to the request, and return the response as `ResponseEntity`.
`<T> ResponseEntity<T>`
RestOperations.`exchange(URI url, HttpMethod method, HttpEntity<?> requestEntity, Class<T> responseType)`
Execute the HTTP method to the given URI template, writing the given request entity to the request, and return the response as `ResponseEntity`.
`<T> ResponseEntity<T>`
RestOperations.`exchange(URI url, HttpMethod method, HttpEntity<?> requestEntity, org.springframework.core.ParameterizedTypeReference<T> responseType)`
Execute the HTTP method to the given URI template, writing the given request entity to the request, and return the response as `ResponseEntity`.
`<T> ResponseEntity<T>`
RestOperations.`exchange(RequestEntity<?> requestEntity, Class<T> responseType)`
Execute the request specified in the given `RequestEntity` and return the response as `ResponseEntity`.
`<T> ResponseEntity<T>`
RestOperations.`exchange(RequestEntity<?> requestEntity, org.springframework.core.ParameterizedTypeReference<T> responseType)`
Execute the request specified in the given `RequestEntity` and return the response as `ResponseEntity`.
`<T> ResponseEntity<T>`
RestTemplate.`exchange(String url, HttpMethod method, HttpEntity<?> requestEntity, Class<T> responseType, Object... uriVariables)`
`<T> ResponseEntity<T>`
RestTemplate.`exchange(String url, HttpMethod method, HttpEntity<?> requestEntity, Class<T> responseType, Map<String,?> uriVariables)`
`<T> ResponseEntity<T>`
RestTemplate.`exchange(String url, HttpMethod method, HttpEntity<?> requestEntity, org.springframework.core.ParameterizedTypeReference<T> responseType, Object... uriVariables)`
`<T> ResponseEntity<T>`
RestTemplate.`exchange(String url, HttpMethod method, HttpEntity<?> requestEntity, org.springframework.core.ParameterizedTypeReference<T> responseType, Map<String,?> uriVariables)`
`<T> ResponseEntity<T>`
RestTemplate.`exchange(URI url, HttpMethod method, HttpEntity<?> requestEntity, Class<T> responseType)`
`<T> ResponseEntity<T>`
RestTemplate.`exchange(URI url, HttpMethod method, HttpEntity<?> requestEntity, org.springframework.core.ParameterizedTypeReference<T> responseType)`
`<T> ResponseEntity<T>`
RestTemplate.`exchange(RequestEntity<?> entity, Class<T> responseType)`
`<T> ResponseEntity<T>`
RestTemplate.`exchange(RequestEntity<?> entity, org.springframework.core.ParameterizedTypeReference<T> responseType)`
`<T> T`
RestOperations.`execute(String uriTemplate, HttpMethod method, RequestCallback requestCallback, ResponseExtractor<T> responseExtractor, Object... uriVariables)`
Execute the HTTP method to the given URI template, preparing the request with the `RequestCallback`, and reading the response with a `ResponseExtractor`.
`<T> T`
RestOperations.`execute(String uriTemplate, HttpMethod method, RequestCallback requestCallback, ResponseExtractor<T> responseExtractor, Map<String,?> uriVariables)`
Execute the HTTP method to the given URI template, preparing the request with the `RequestCallback`, and reading the response with a `ResponseExtractor`.
`<T> T`
RestOperations.`execute(URI url, HttpMethod method, RequestCallback requestCallback, ResponseExtractor<T> responseExtractor)`
Execute the HTTP method to the given URL, preparing the request with the `RequestCallback`, and reading the response with a `ResponseExtractor`.
`<T> T`
RestTemplate.`execute(String uriTemplate, HttpMethod method, RequestCallback requestCallback, ResponseExtractor<T> responseExtractor, Object... uriVariables)`
Execute the HTTP method to the given URI template, preparing the request with the `RequestCallback`, and reading the response with a `ResponseExtractor`.
`<T> T`
RestTemplate.`execute(String uriTemplate, HttpMethod method, RequestCallback requestCallback, ResponseExtractor<T> responseExtractor, Map<String,?> uriVariables)`
Execute the HTTP method to the given URI template, preparing the request with the `RequestCallback`, and reading the response with a `ResponseExtractor`.
`<T> T`
RestTemplate.`execute(URI url, HttpMethod method, RequestCallback requestCallback, ResponseExtractor<T> responseExtractor)`
Execute the HTTP method to the given URL, preparing the request with the `RequestCallback`, and reading the response with a `ResponseExtractor`.
`<T> ResponseEntity<T>`
RestOperations.`getForEntity(String url, Class<T> responseType, Object... uriVariables)`
Retrieve an entity by doing a GET on the specified URL.
`<T> ResponseEntity<T>`
RestOperations.`getForEntity(String url, Class<T> responseType, Map<String,?> uriVariables)`
Retrieve a representation by doing a GET on the URI template.
`<T> ResponseEntity<T>`
RestOperations.`getForEntity(URI url, Class<T> responseType)`
Retrieve a representation by doing a GET on the URL.
`<T> ResponseEntity<T>`
RestTemplate.`getForEntity(String url, Class<T> responseType, Object... uriVariables)`
`<T> ResponseEntity<T>`
RestTemplate.`getForEntity(String url, Class<T> responseType, Map<String,?> uriVariables)`
`<T> ResponseEntity<T>`
RestTemplate.`getForEntity(URI url, Class<T> responseType)`
`<T> T`
RestOperations.`getForObject(String url, Class<T> responseType, Object... uriVariables)`
Retrieve a representation by doing a GET on the specified URL.
`<T> T`
RestOperations.`getForObject(String url, Class<T> responseType, Map<String,?> uriVariables)`
Retrieve a representation by doing a GET on the URI template.
`<T> T`
RestOperations.`getForObject(URI url, Class<T> responseType)`
Retrieve a representation by doing a GET on the URL.
`<T> T`
RestTemplate.`getForObject(String url, Class<T> responseType, Object... uriVariables)`
`<T> T`
RestTemplate.`getForObject(String url, Class<T> responseType, Map<String,?> uriVariables)`
`<T> T`
RestTemplate.`getForObject(URI url, Class<T> responseType)`
`HttpHeaders`
RestOperations.`headForHeaders(String url, Object... uriVariables)`
Retrieve all headers of the resource specified by the URI template.
`HttpHeaders`
RestOperations.`headForHeaders(String url, Map<String,?> uriVariables)`
Retrieve all headers of the resource specified by the URI template.
`HttpHeaders`
RestOperations.`headForHeaders(URI url)`
Retrieve all headers of the resource specified by the URL.
`HttpHeaders`
RestTemplate.`headForHeaders(String url, Object... uriVariables)`
`HttpHeaders`
RestTemplate.`headForHeaders(String url, Map<String,?> uriVariables)`
`HttpHeaders`
RestTemplate.`headForHeaders(URI url)`
`Set<HttpMethod>`
RestOperations.`optionsForAllow(String url, Object... uriVariables)`
Return the value of the `Allow` header for the given URI.
`Set<HttpMethod>`
RestOperations.`optionsForAllow(String url, Map<String,?> uriVariables)`
Return the value of the `Allow` header for the given URI.
`Set<HttpMethod>`
RestOperations.`optionsForAllow(URI url)`
Return the value of the `Allow` header for the given URL.
`Set<HttpMethod>`
RestTemplate.`optionsForAllow(String url, Object... uriVariables)`
`Set<HttpMethod>`
RestTemplate.`optionsForAllow(String url, Map<String,?> uriVariables)`
`Set<HttpMethod>`
RestTemplate.`optionsForAllow(URI url)`
`<T> T`
RestOperations.`patchForObject(String url, Object request, Class<T> responseType, Object... uriVariables)`
Update a resource by PATCHing the given object to the URI template, and return the representation found in the response.
`<T> T`
RestOperations.`patchForObject(String url, Object request, Class<T> responseType, Map<String,?> uriVariables)`
Update a resource by PATCHing the given object to the URI template, and return the representation found in the response.
`<T> T`
RestOperations.`patchForObject(URI url, Object request, Class<T> responseType)`
Update a resource by PATCHing the given object to the URL, and return the representation found in the response.
`<T> T`
RestTemplate.`patchForObject(String url, Object request, Class<T> responseType, Object... uriVariables)`
`<T> T`
RestTemplate.`patchForObject(String url, Object request, Class<T> responseType, Map<String,?> uriVariables)`
`<T> T`
RestTemplate.`patchForObject(URI url, Object request, Class<T> responseType)`
`<T> ResponseEntity<T>`
RestOperations.`postForEntity(String url, Object request, Class<T> responseType, Object... uriVariables)`
Create a new resource by POSTing the given object to the URI template, and return the response as `ResponseEntity`.
`<T> ResponseEntity<T>`
RestOperations.`postForEntity(String url, Object request, Class<T> responseType, Map<String,?> uriVariables)`
Create a new resource by POSTing the given object to the URI template, and return the response as `HttpEntity`.
`<T> ResponseEntity<T>`
RestOperations.`postForEntity(URI url, Object request, Class<T> responseType)`
Create a new resource by POSTing the given object to the URL, and return the response as `ResponseEntity`.
`<T> ResponseEntity<T>`
RestTemplate.`postForEntity(String url, Object request, Class<T> responseType, Object... uriVariables)`
`<T> ResponseEntity<T>`
RestTemplate.`postForEntity(String url, Object request, Class<T> responseType, Map<String,?> uriVariables)`
`<T> ResponseEntity<T>`
RestTemplate.`postForEntity(URI url, Object request, Class<T> responseType)`
`URI`
RestOperations.`postForLocation(String url, Object request, Object... uriVariables)`
Create a new resource by POSTing the given object to the URI template, and return the value of the `Location` header.
`URI`
RestOperations.`postForLocation(String url, Object request, Map<String,?> uriVariables)`
Create a new resource by POSTing the given object to the URI template, and return the value of the `Location` header.
`URI`
RestOperations.`postForLocation(URI url, Object request)`
Create a new resource by POSTing the given object to the URL, and return the value of the `Location` header.
`URI`
RestTemplate.`postForLocation(String url, Object request, Object... uriVariables)`
`URI`
RestTemplate.`postForLocation(String url, Object request, Map<String,?> uriVariables)`
`URI`
RestTemplate.`postForLocation(URI url, Object request)`
`<T> T`
RestOperations.`postForObject(String url, Object request, Class<T> responseType, Object... uriVariables)`
Create a new resource by POSTing the given object to the URI template, and return the representation found in the response.
`<T> T`
RestOperations.`postForObject(String url, Object request, Class<T> responseType, Map<String,?> uriVariables)`
Create a new resource by POSTing the given object to the URI template, and return the representation found in the response.
`<T> T`
RestOperations.`postForObject(URI url, Object request, Class<T> responseType)`
Create a new resource by POSTing the given object to the URL, and return the representation found in the response.
`<T> T`
RestTemplate.`postForObject(String url, Object request, Class<T> responseType, Object... uriVariables)`
`<T> T`
RestTemplate.`postForObject(String url, Object request, Class<T> responseType, Map<String,?> uriVariables)`
`<T> T`
RestTemplate.`postForObject(URI url, Object request, Class<T> responseType)`
`void`
RestOperations.`put(String url, Object request, Object... uriVariables)`
Create or update a resource by PUTting the given object to the URI.
`void`
RestOperations.`put(String url, Object request, Map<String,?> uriVariables)`
Creates a new resource by PUTting the given object to URI template.
`void`
RestOperations.`put(URI url, Object request)`
Creates a new resource by PUTting the given object to URL.
`void`
RestTemplate.`put(String url, Object request, Object... uriVariables)`
`void`
RestTemplate.`put(String url, Object request, Map<String,?> uriVariables)`
`void`
RestTemplate.`put(URI url, Object request)`