public class UnknownHttpStatusCodeException extends RestClientResponseException
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, getStatusText
contains, getMessage, getMostSpecificCause, getRootCause
public UnknownHttpStatusCodeException(int rawStatusCode, java.lang.String statusText, @Nullable HttpHeaders responseHeaders, @Nullable byte[] responseBody, @Nullable 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 null
)responseBody
- the response body content (may be null
)responseCharset
- the response body charset (may be null
)