Skip to content

is_rate_limited

Function: warmhub.is_rate_limited

is_rate_limited(error: object)

Whether a rate limit rejected the request.

Pair with retry_after (relative seconds) or reset_at (absolute instant); either may be None, so back off on your own schedule when both are.