JWCook / requests-ratelimiter

Easy rate-limiting for python requests
MIT License
84 stars 5 forks source link

Add option to specify 'rate limit error' HTTP status codes #34

Closed JWCook closed 2 years ago

JWCook commented 2 years ago

Follow-up from #4. After that's implemented, it would be useful to have an option to set other status codes (besides just 429) that indicate a server-side rate limit error.

JWCook commented 2 years ago

This can now be done with the limit_statuses option: https://github.com/JWCook/requests-ratelimiter#server-side-rate-limit-behavior