HttpStatus

class HttpStatus(val status: Int, val body: ByteArray, val url: String) : KoryHttpException, JsonDecodable

Non-2xx HTTP response.

Constructors

Link copied to clipboard
constructor(status: Int, body: ByteArray, url: String)

Properties

Link copied to clipboard
open override val body: ByteArray

The raw response body.

Link copied to clipboard
expect open val cause: Throwable?
Link copied to clipboard
expect open val message: String?
Link copied to clipboard
val status: Int

The HTTP status code.

Link copied to clipboard
val url: String

The request URL.

Functions

Link copied to clipboard
Link copied to clipboard
open fun decodedBody(): String
Link copied to clipboard