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.
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 theX-Ratelimit-LimitandX-Ratelimit-Remainingheaders.