Http

data class Http(val code: Int, val body: String? = null) : CgsError.Network

The request failed with a non-successful HTTP status code. 401, 403 and 429 come back as Auth.Unauthorized, Auth.Forbidden and RateLimited instead.

Parameters

code

the HTTP status code returned by the server

body

always null: the SDK does not keep the error response's body.

Constructors

Link copied to clipboard
constructor(code: Int, body: String? = null)

Properties

Link copied to clipboard
val body: String? = null
Link copied to clipboard
val code: Int