Raise Error if response is 429
See original GitHub issueWhen access rate is too frequent, Wayback Machine returns 429 as HTTP status code.
And returned HTML Body is:
https://gist.github.com/eggplants/414bab0230f14358642faf364bc1f7ec
<h1>Too Many Requests</h1>
We are limiting the number of URLs you can submit to be Archived to the Wayback Machine,
using the Save Page Now features, to no more than 15 per minute.
<p>
If you submit more than that we will block Save Page Now requests from your IP number for 5 minutes.
</p>
<p>
Please feel free to write to us at info@archive.org if you have questions about this.
Please include your IP address and any URLs in the email so we can provide you with better service.
</p>
So I suggest raising TooManyRequestsError
when returned status code is 429.
Issue Analytics
- State:
- Created 2 years ago
- Reactions:1
- Comments:7 (4 by maintainers)
Top Results From Across the Web
What an HTTP Error 429 Means & How to Fix It - HubSpot Blog
HTTP Error 429 is an HTTP response status code that indicates the client application has surpassed its rate limit, or number of requests...
Read more >What error should I raise if response.status code is 429?
I want to raise an error in my code if the status code of a request response is 429, which error should I...
Read more >How to Fix 429 Too Many Requests Error - Kinsta
The HTTP 429 error is returned when too many requests are made to a page within a short period of time. Find out...
Read more >429 Error – Too Many Requests HTTP Code Explained
The 429 error is an HTTP status code. It tells you when the use of an internet resource has surpassed the number of...
Read more >Handling the “HTTP 429 – Too Many Requests” error when ...
The HTTP 429 - Too Many Requests response status code indicates the user has sent too many requests in a given amount of...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Go ahead.
@eggplants will you be working on this issue? Just asking so that we both don’t end up creating two PRs.