Class UnknownHttpStatusCodeException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.springframework.core.NestedRuntimeException
org.springframework.web.reactive.function.client.WebClientException
org.springframework.web.reactive.function.client.WebClientResponseException
org.springframework.web.reactive.function.client.UnknownHttpStatusCodeException
- All Implemented Interfaces:
- Serializable
Exception thrown when an unknown (or custom) HTTP status code is received.
- Since:
- 5.1
- Author:
- Brian Clozel
- See Also:
- 
Nested Class SummaryNested classes/interfaces inherited from class org.springframework.web.reactive.function.client.WebClientResponseExceptionWebClientResponseException.BadGateway, WebClientResponseException.BadRequest, WebClientResponseException.Conflict, WebClientResponseException.Forbidden, WebClientResponseException.GatewayTimeout, WebClientResponseException.Gone, WebClientResponseException.InternalServerError, WebClientResponseException.MethodNotAllowed, WebClientResponseException.NotAcceptable, WebClientResponseException.NotFound, WebClientResponseException.NotImplemented, WebClientResponseException.ServiceUnavailable, WebClientResponseException.TooManyRequests, WebClientResponseException.Unauthorized, WebClientResponseException.UnprocessableEntity, WebClientResponseException.UnsupportedMediaType
- 
Constructor SummaryConstructorsConstructorDescriptionUnknownHttpStatusCodeException(int statusCode, HttpHeaders headers, byte[] responseBody, Charset responseCharset) Create a new instance of theUnknownHttpStatusCodeExceptionwith the given parameters.UnknownHttpStatusCodeException(int statusCode, HttpHeaders headers, byte[] responseBody, Charset responseCharset, HttpRequest request) Create a new instance of theUnknownHttpStatusCodeExceptionwith the given parameters.UnknownHttpStatusCodeException(HttpStatusCode statusCode, HttpHeaders headers, byte[] responseBody, Charset responseCharset, HttpRequest request) Create a new instance of theUnknownHttpStatusCodeExceptionwith the given parameters.
- 
Method SummaryMethods inherited from class org.springframework.web.reactive.function.client.WebClientResponseExceptioncreate, create, create, getHeaders, getMessage, getRawStatusCode, getRequest, getResponseBodyAs, getResponseBodyAs, getResponseBodyAsByteArray, getResponseBodyAsString, getResponseBodyAsString, getStatusCode, getStatusText, setBodyDecodeFunctionMethods inherited from class org.springframework.core.NestedRuntimeExceptioncontains, getMostSpecificCause, getRootCauseMethods inherited from class java.lang.ThrowableaddSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
- 
Constructor Details- 
UnknownHttpStatusCodeExceptionpublic UnknownHttpStatusCodeException(int statusCode, HttpHeaders headers, byte[] responseBody, Charset responseCharset) Create a new instance of theUnknownHttpStatusCodeExceptionwith the given parameters.
- 
UnknownHttpStatusCodeExceptionpublic UnknownHttpStatusCodeException(int statusCode, HttpHeaders headers, byte[] responseBody, @Nullable Charset responseCharset, @Nullable HttpRequest request) Create a new instance of theUnknownHttpStatusCodeExceptionwith the given parameters.- Since:
- 5.1.4
 
- 
UnknownHttpStatusCodeExceptionpublic UnknownHttpStatusCodeException(HttpStatusCode statusCode, HttpHeaders headers, byte[] responseBody, @Nullable Charset responseCharset, @Nullable HttpRequest request) Create a new instance of theUnknownHttpStatusCodeExceptionwith the given parameters.- Since:
- 6.0
 
 
-