Search API: new HTTP response code 420 for rate limiting starting 1/18/2010

481 views
Skip to first unread message

Wilhelm Bierbaum

unread,
Dec 22, 2009, 5:44:06 PM12/22/09
to twitter-ap...@googlegroups.com, twitter-deve...@googlegroups.com
We're changing the response code sent back by the Search API when the
rate limit has been exceeded. At present, it is impossible to
distinguish rate limit responses from other error conditions in
responses from the Search API -- this is what we're trying to fix.

Starting Monday, January 18th, 2010 the Search API will respond 
with error code 420 in the event that the number of requests you have 
made exceeds the quota afforded by your assigned rate limit. 

Please update your response your response handler to accommodate this
new behavior.

Apologies for the false start last time this change was announced.

If you have any questions, please feel free to post them on twitter-development-talk. 

Thanks!

DustyReagan

unread,
Dec 22, 2009, 7:03:32 PM12/22/09
to Twitter Development Talk
Will you be changing the REST API error code to match the Search API?
RE: 420 = rate limit exceeded.

Marco Kaiser

unread,
Dec 22, 2009, 7:07:57 PM12/22/09
to twitter-deve...@googlegroups.com
yeah, doesn't make much sense to have two different codes indicating that the limit is exceeded... 

2009/12/23 DustyReagan <dusty...@gmail.com>

Wilhelm Bierbaum

unread,
Dec 22, 2009, 7:19:06 PM12/22/09
to Twitter Development Talk
Eventually the REST API will return the same 420 response code to
indicate rate limiting. We wanted to change as little as possible to
get people comfortable with the new response code.


On Dec 22, 4:07 pm, Marco Kaiser <kaiser.ma...@gmail.com> wrote:
> yeah, doesn't make much sense to have two different codes indicating that
> the limit is exceeded...
>

> 2009/12/23 DustyReagan <dustyrea...@gmail.com>

Sandip

unread,
Jan 22, 2010, 2:15:59 AM1/22/10
to Twitter Development Talk
i am getting this response code in my twitter search application, how
to resolve the error ?

M. Edward (Ed) Borasky

unread,
Jan 22, 2010, 11:42:52 AM1/22/10
to Twitter Development Talk
OK ... next question ... are the rate limit HTTP headers from the REST
API now "ported" to Search and working / documented?

2. HTTP response headers included in all REST API responses which
count against the rate limit:

* X-RateLimit-Limit the current limit in effect
* X-RateLimit-Remaining the number of hits remaining before you
are rate limited
* X-RateLimit-Reset the time the current rate limiting period ends
in epoch time.

Andy Freeman

unread,
Jan 23, 2010, 9:40:09 PM1/23/10
to Twitter Development Talk
(1) When will http://apiwiki.twitter.com/HTTP-Response-Codes-and-Errors
be updated?
(2) How does 420 differ from 400?

> > > > Thanks!- Hide quoted text -
>
> - Show quoted text -

Abraham Williams

unread,
Jan 29, 2010, 10:32:57 PM1/29/10
to twitter-deve...@googlegroups.com
1) Looks like the docs got updated. 
2) 400 will eventually just be for API calls that are malformed: http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html#sec10.4.1

Abraham
--
Abraham Williams | Community Advocate | http://abrah.am
Project | Out Loud | http://outloud.labs.poseurtech.com
This email is: [ ] shareable [x] ask first [ ] private.
Sent from Seattle, WA, United States
Reply all
Reply to author
Forward
0 new messages