RateLimited

The server throttled the call.

Stable Core. Created by the call facades only. Message: The server rate-limited the call (status <status>); retry in <retryAfter>.

Parameters

status

the response status, in 100..599.

retryAfter

how long to wait before calling again: the longer of the server's Retry-After and the time the call budget stays paused because of this and earlier throttles, measured when the failure was created. A call made after waiting this long is not refused by the budget's pause, and does not go back to a server that asked for more time. Zero when neither the server nor the budget named a wait; the server may still throttle again. Not negative; may exceed the budget's longest pause.

Throws

if status is outside 100..599 or retryAfter is negative.

Properties

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

How long to wait before calling again; see the constructor's description.

Link copied to clipboard
val status: Int

The response status, in 100..599.