WebException

class WebException(val statusCode: HttpStatusCode, val message: String) : Throwable

Represents an exception that occurred during a web request.

Constructors

Link copied to clipboard
constructor(statusCode: HttpStatusCode, message: String)

Properties

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

The message of the exception.

Link copied to clipboard
val statusCode: HttpStatusCode

The status code of the response.