PteroJS icon indicating copy to clipboard operation
PteroJS copied to clipboard

Ratelimit system

Open devnote-dev opened this issue 3 years ago • 0 comments

Currently there is no proper ratelimit system for HTTP requests, all 4xx responses are treated as PteroAPIErrors and are subsequently thrown. Ratelimit responses should be a special case which suspends all requests until the ratelimit is over, this can be tracked via the X-Ratelimit-Limit and X-Ratelimit-Remaining headers.

devnote-dev avatar Oct 06 '22 13:10 devnote-dev