public abstract class HttpStatusCodeException extends RestClientResponseException
HttpStatus.| Modifier | Constructor and Description | 
|---|---|
| protected  | HttpStatusCodeException(HttpStatus statusCode)Construct a new instance with an  HttpStatus. | 
| protected  | HttpStatusCodeException(HttpStatus statusCode,
                       String statusText)Construct a new instance with an  HttpStatusand status text. | 
| protected  | HttpStatusCodeException(HttpStatus statusCode,
                       String statusText,
                       byte[] responseBody,
                       Charset responseCharset)Construct instance with an  HttpStatus, status text, and content. | 
| protected  | HttpStatusCodeException(HttpStatus statusCode,
                       String statusText,
                       HttpHeaders responseHeaders,
                       byte[] responseBody,
                       Charset responseCharset)Construct instance with an  HttpStatus, status text, content, and
 a response charset. | 
| protected  | HttpStatusCodeException(String message,
                       HttpStatus statusCode,
                       String statusText,
                       HttpHeaders responseHeaders,
                       byte[] responseBody,
                       Charset responseCharset)Construct instance with an  HttpStatus, status text, content, and
 a response charset. | 
| Modifier and Type | Method and Description | 
|---|---|
| HttpStatus | getStatusCode()Return the HTTP status code. | 
getRawStatusCode, getResponseBodyAsByteArray, getResponseBodyAsString, getResponseBodyAsString, getResponseHeaders, getStatusTextcontains, getMessage, getMostSpecificCause, getRootCauseaddSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringprotected HttpStatusCodeException(HttpStatus statusCode)
HttpStatus.statusCode - the status codeprotected HttpStatusCodeException(HttpStatus statusCode, String statusText)
HttpStatus and status text.statusCode - the status codestatusText - the status textprotected HttpStatusCodeException(HttpStatus statusCode, String statusText, @Nullable byte[] responseBody, @Nullable Charset responseCharset)
HttpStatus, status text, and content.statusCode - the status codestatusText - the status textresponseBody - the response body content, may be nullresponseCharset - the response body charset, may be nullprotected HttpStatusCodeException(HttpStatus statusCode, String statusText, @Nullable HttpHeaders responseHeaders, @Nullable byte[] responseBody, @Nullable Charset responseCharset)
HttpStatus, status text, content, and
 a response charset.statusCode - the status codestatusText - the status textresponseHeaders - the response headers, may be nullresponseBody - the response body content, may be nullresponseCharset - the response body charset, may be nullprotected HttpStatusCodeException(String message, HttpStatus statusCode, String statusText, @Nullable HttpHeaders responseHeaders, @Nullable byte[] responseBody, @Nullable Charset responseCharset)
HttpStatus, status text, content, and
 a response charset.message - the exception messagestatusCode - the status codestatusText - the status textresponseHeaders - the response headers, may be nullresponseBody - the response body content, may be nullresponseCharset - the response body charset, may be nullpublic HttpStatus getStatusCode()