Unauthorized

data class Unauthorized(val message: String?, val status: Int = HTTP_UNAUTHORIZED, val code: String? = null) : KarboneError.Api

HTTP 401, or a malformed bearer token (carbone-ee answers HTTP 500 "Invalid JSON Web Token").

Constructors

Link copied to clipboard
constructor(message: String?, status: Int = HTTP_UNAUTHORIZED, code: String? = null)

Properties

Link copied to clipboard
open override val code: String?

Carbone error code when provided, e.g. w117.

Link copied to clipboard
open override val message: String?

Raw error text from the Carbone response, if any, never rewritten.

Link copied to clipboard
open override val status: Int

HTTP status returned by Carbone.

Functions

Link copied to clipboard
open override fun describe(): String

Human-readable summary of this error, used as the message of KarboneException.