HttpException

open class HttpException(message: String, val status: HttpStatusCode, val response: Response? = null) : Exception

Thrown on HTTP response with a non-successful status code (4xx or 5xx).

Parameters

message

The error message.

status

The HTTP status code.

response

The full HTTP response.

Inheritors

Constructors

Link copied to clipboard
constructor(message: String, status: HttpStatusCode, response: Response? = null)

Properties

Link copied to clipboard
open val cause: Throwable?
Link copied to clipboard
Link copied to clipboard
open val message: String?
Link copied to clipboard
val response: Response?
Link copied to clipboard

The wait time before retrying suggested by the server.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard