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

HttpServerErrorException

open class HttpServerErrorException : HttpStatusCodeException

Exception thrown when an HTTP 5xx is received.

Author
Arjen Poutsma

Since
3.0

See Also
DefaultResponseErrorHandler

Constructors

<init>

HttpServerErrorException(statusCode: HttpStatus)

Construct a new instance of HttpServerErrorException based on an HttpStatus.

HttpServerErrorException(statusCode: HttpStatus, statusText: String)

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

HttpServerErrorException(statusCode: HttpStatus, statusText: String, responseBody: ByteArray, responseCharset: Charset)
HttpServerErrorException(statusCode: HttpStatus, statusText: String, responseHeaders: HttpHeaders, responseBody: ByteArray, responseCharset: Charset)

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