ryanmcgrath/twython — pull request #143 by gdevanla (2013-01-15 22:48:09+00:00)
Title: Update error code to 429 - (to catch rate limit exceptions)

Twitter Api 1.1 always return 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._