public class UnknownHttpStatusCodeException extends RestClientResponseException
| Modifier and Type | Field and Description |
|---|---|
private static long |
serialVersionUID |
| Constructor and Description |
|---|
UnknownHttpStatusCodeException(int rawStatusCode,
java.lang.String statusText,
HttpHeaders responseHeaders,
byte[] responseBody,
java.nio.charset.Charset responseCharset)
Construct a new instance of
HttpStatusCodeException based on an
HttpStatus, status text, and response body content. |
getRawStatusCode, getResponseBodyAsByteArray, getResponseBodyAsString, getResponseHeaders, getStatusTextcontains, getMessage, getMostSpecificCause, getRootCauseprivate static final long serialVersionUID
public UnknownHttpStatusCodeException(int rawStatusCode,
java.lang.String statusText,
HttpHeaders responseHeaders,
byte[] responseBody,
java.nio.charset.Charset responseCharset)
HttpStatusCodeException based on an
HttpStatus, status text, and response body content.rawStatusCode - the raw status code valuestatusText - the status textresponseHeaders - the response headers, may be nullresponseBody - the response body content, may be nullresponseCharset - the response body charset, may be null