Skip to main content
Data Class
data class HttpError(val statusCode: Int, val message: String, val cause: Throwable? = null, val body: String? = null) : NetworkError

Constructors

constructor(statusCode: Int, message: String, cause: Throwable? = null, body: String? = null)

Properties

body

val body: String? = null
Raw response body, when message does not already carry it verbatim. Lets callers parse stable error codes (e.g. DEVICE_SIGNER_NOT_SUPPORTED) without scraping message.

cause

open override val cause: Throwable? = null

message

open override val message: String

statusCode

val statusCode: Int