HttpClientErrorException(statusCode: HttpStatus)
Construct a new instance of HttpClientErrorException based on an HttpStatus.
HttpClientErrorException(statusCode: HttpStatus, statusText: String)
Construct a new instance of HttpClientErrorException based on an HttpStatus and 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.
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.
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