Update error code to 429 - (to catch rate limit exceptions) #143

Merged
gdevanla merged 2 commits from update_error_code into master 2013-02-15 08:18:06 -08:00
gdevanla commented 2013-01-15 14:48:09 -08:00 (Migrated from github.com)

Twitter Api 1.1 always returns the error_code: 429, when the rate limit is exceeded. This is different from the previous version where a variety of 400 response code were being returned.

https://dev.twitter.com/docs/rate-limiting/1.1

From the page:
When an application exceeds the rate limit for a given API endpoint, the Twitter API will now return an HTTP 429 “Too Many Requests” response code instead of the variety of codes you would find across the v1's Search and REST APIs.

Twitter Api 1.1 always returns the error_code: 429, when the rate limit is exceeded. This is different from the previous version where a variety of 400 response code were being returned. https://dev.twitter.com/docs/rate-limiting/1.1 From the page: _When an application exceeds the rate limit for a given API endpoint, the Twitter API will now return an HTTP 429 “Too Many Requests” response code instead of the variety of codes you would find across the v1's Search and REST APIs._
ryanmcgrath commented 2013-02-15 08:18:15 -08:00 (Migrated from github.com)

Thanks!

Thanks!
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: code/twython#143
No description provided.