Test client-side exponential backoff, retry throttles, and user toast notifications when API quotas are exceeded. Simulates sliding-window rate limiters and returns compliant Retry-After and X-RateLimit-* headers.
Choose a quota preset and send repeated requests to observe rate limiting in action:
| Header | Format | Example | Description |
|---|---|---|---|
| Retry-After | Integer (seconds) | 3 | Recommended pause duration in seconds before the client should attempt a retry. |
| X-RateLimit-Limit | Integer | 5 | The maximum permitted request ceiling within the configured time window. |
| X-RateLimit-Remaining | Integer | 0 | The number of remaining permitted calls before rejection occurs. |
| X-RateLimit-Reset | Unix Timestamp | 1759165200 | Epoch timestamp in seconds marking when the sliding window resets. |
A resilient TypeScript implementation that parses Retry-After and retries automatically:
Simulate probabilistic failure rates and randomized network jitter.