HttpError

sealed interface HttpError

An error occurring due to an HTTP request failing.

Inheritors

Types

Link copied to clipboard
data class BadStatusCode(val code: Int) : HttpError

The HTTP request returned an invalid status code.

Link copied to clipboard
data class ExceptionThrown(val e: Exception) : HttpError

An exception was thrown during the HTTP request.

Link copied to clipboard

The HTTP response was expected to have a body.

Properties

Link copied to clipboard
abstract val description: String

A humaan-readable description of the error.