Skip to main content

Overview

Rate limit errors are thrown when a client exceeds request rate limits or usage quotas. Both are public errors that inform the client about the limitation.

Error Reference

RateLimitError

Thrown when a client exceeds the configured request rate limit.
When retryAfter is provided, the message includes the number of seconds the client should wait before retrying. Example:

QuotaExceededError

Thrown when a client exceeds a usage quota (e.g., monthly API calls, storage).
Example: