The body of the response allows you to differentiate these two codes, e.g.

curl -u<credentials> -XPOST -d ""
http://twitter.com/friendships/create/atebits.xml
<?xml version="1.0" encoding="UTF-8"?>
<hash>
  <request>/friendships/create/atebits.xml</request>
  <error>Could not follow user: atebits is already on your list.</error>
</hash>


On Mon, Dec 14, 2009 at 2:38 PM, shiplu <shiplu....@gmail.com> wrote:
> There are two phrases about friendships/create.
>
> 1.  If you are already friends with the user an HTTP 403 will be returned.
> 2.  This method is subject to [1]update limits. An HTTP 403 will be
> returned if this limit as been hit.
>
> How to differ those two status codes?
>
>
> [1] http://help.twitter.com/forums/10711/entries/15364
>
> --
> A K M Mokaddim
> My talks, http://talk.cmyweb.net
> Follow me, http://twitter.com/shiplu
> Innovation distinguishes bet ... ... (ask Steve Jobs the rest)
>



-- 
   ---Mark

http://twitter.com/mccv

Reply via email to