spring-framework / org.springframework.web.client / HttpClientErrorException / <init>

<init>

HttpClientErrorException(statusCode: HttpStatus)

Construct a new instance of HttpClientErrorException based on an HttpStatus.

Parameters

statusCode - the status code

HttpClientErrorException(statusCode: HttpStatus, statusText: String)

Construct a new instance of HttpClientErrorException based on an HttpStatus and status text.

Parameters

statusCode - the status code

statusText - the status text

HttpClientErrorException(statusCode: HttpStatus, statusText: String, @Nullable responseBody: ByteArray, @Nullable responseCharset: Charset)

Construct a new instance of HttpClientErrorException based on an HttpStatus, status text, and response body content.

Parameters

statusCode - the status code

statusText - the status text

responseBody - the response body content (may be null)

responseCharset - the response body charset (may be null)

HttpClientErrorException(statusCode: HttpStatus, statusText: String, @Nullable responseHeaders: HttpHeaders, @Nullable responseBody: ByteArray, @Nullable responseCharset: Charset)

Construct a new instance of HttpClientErrorException based on an HttpStatus, status text, and response body content.

Parameters

statusCode - the status code

statusText - the status text

responseHeaders - the response headers (may be null)

responseBody - the response body content (may be null)

responseCharset - the response body charset (may be null)

Since
3.1.2