open class WebClientResponseException : WebClientException
Exceptions that contain actual HTTP response data.
Author
Arjen Poutsma
Since
5.0
WebClientResponseException(message: String, statusCode: Int, statusText: String, headers: HttpHeaders, responseBody: ByteArray, responseCharset: Charset)
Construct a new instance of with the given response data. |
open fun getHeaders(): HttpHeaders
Return the HTTP response headers. |
|
open fun getRawStatusCode(): Int
Return the raw HTTP status code value. |
|
open fun getResponseBodyAsByteArray(): ByteArray
Return the response body as a byte array. |
|
open fun getResponseBodyAsString(): String
Return the response body as a string. |
|
open fun getStatusCode(): HttpStatus
Return the HTTP status code value. |
|
open fun getStatusText(): String
Return the HTTP status text. |