TooManyRequestsException

class TooManyRequestsException(message: String? = null, cause: Throwable? = null, code: Int? = null, body: String? = null) : NetworkException

Exception thrown when the server returns a 429 Too Many Requests status code. This indicates that the client has sent too many requests in a given amount of time.

Constructors

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

Properties

Link copied to clipboard
val body: String?

The raw body of the response, or null if not available

Link copied to clipboard
expect open val cause: Throwable?
Link copied to clipboard
val code: Int?

The HTTP status code of the response, or null if not applicable

Link copied to clipboard
expect open val message: String?