spring-framework / org.springframework.web.client / UnknownHttpStatusCodeException

UnknownHttpStatusCodeException

open class UnknownHttpStatusCodeException : RestClientResponseException

Exception thrown when an unknown (or custom) HTTP status code is received.

Author
Rossen Stoyanchev

Since
3.2

Constructors

<init>

UnknownHttpStatusCodeException(rawStatusCode: Int, statusText: String, responseHeaders: HttpHeaders, responseBody: ByteArray, responseCharset: Charset)

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