ClientError

class ClientError(val statusCode: Int, message: String) : KHttpException(source)

Thrown on 4xx responses.

401 behaviour:

KHttpConfig.onClientError is always invoked before this is thrown.

Parameters

statusCode

HTTP status code (400–499).

message

Error detail parsed from the response body.

Constructors

Link copied to clipboard
constructor(statusCode: Int, message: String)

Properties

Link copied to clipboard
open val cause: Throwable?
Link copied to clipboard
open val message: String?
Link copied to clipboard