You are not being rate limited. You are hitting the update limits as
indicated by the 403. If you look at the body of the returned data, it will
tell you this error condition.
I've updated the friendships_create, direct_messages/new, and
statuses/update method documentation to mention that we throw a 403 in this
case.
Thanks,
Doug
Twitter API Support



On Tue, Jun 2, 2009 at 8:36 PM, jmathai <[email protected]> wrote:

>
> Working within the rate limits is a really big pain in the tail :).
>
> Had to get that off my chest.  The issue I'm seeing is that I'm
> getting the following response with a 403 code.
>
> {"request":"\/direct_messages\/new.json","error":"There was an error
> sending your message: You can't send direct messages to this user
> right now"}
>
> Per the docs it should return a 400 for rate limited responses.  This
> way it's impossible for me to determine if the action isn't allowed or
> if it's just rate limited.  Is this a bug or am I misreading the docs?
>
> http://twitterapi.pbworks.com/HTTP-Response-Codes-and-Errors
>

Reply via email to