RateLimit draft.
Headers
integer
The ceiling of the tightest policy that applies to this request.
integer
Requests left in the current window for that policy.
integer
Seconds until that window resets.
string
Every policy that applies, so a burst ceiling is discoverable without hitting
it, for example
"burst";q=30;w=1, "sustained";q=120;w=60.When you are limited
A refused request is answered429 with the standard error envelope and a
Retry-After header. The detail names which policy was hit and how long to
wait - a burst clears in a second, the sustained window in a minute:
Pacing
- Read
RateLimit-Remainingand slow down before it reaches zero. - On a
429, wait forRetry-Afterseconds, then retry. Do not hammer. - Back off exponentially if
429s persist.
Handling it in code
Retry on429, honoring Retry-After, and give up after a few attempts so a
sustained limit does not become an infinite loop.