ErrorResponse

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

Server responded with an error status code.

Parameters

status

HTTP status code.

mediaType

Response media type.

body

Response body.

Constructors

Link copied to clipboard
constructor(status: HttpStatus, mediaType: MediaType? = null, body: ByteArray? = null)

Properties

Link copied to clipboard
Link copied to clipboard
open override val cause: Error?

The cause error or null if there is none.

Link copied to clipboard
Link copied to clipboard
open override val message: String

An error message.

Link copied to clipboard

Response body parsed as a JSON problem details.

Link copied to clipboard

Functions

Link copied to clipboard

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