HttpError

sealed class HttpError : AccessError

Represents an error occurring during an HTTP activity.

Inheritors

Types

Link copied to clipboard
class ErrorResponse(val status: HttpStatus, val mediaType: MediaType? = null, val body: ByteArray? = null) : HttpError

Server responded with an error status code.

Link copied to clipboard
class IO(cause: Error) : HttpError

An unknown networking error.

Link copied to clipboard

Malformed HTTP response.

Link copied to clipboard
class Redirection(cause: Error) : HttpError

Redirection failed.

Link copied to clipboard
class SslHandshake(cause: Error) : HttpError

SSL Handshake failed.

Link copied to clipboard
class Timeout(cause: Error) : HttpError

The client, server or gateways timed out.

Link copied to clipboard
class Unreachable(cause: Error) : HttpError

Server could not be reached.

Properties

Link copied to clipboard
open override val cause: Error?

The cause error or null if there is none.

Link copied to clipboard
open override val message: String

An error message.

Functions

Link copied to clipboard

Convenience function to get the description of an error with its cause.