Response codes and Errors

1 view
Skip to first unread message

Danny Pier

unread,
Apr 3, 2010, 2:53:05 AM4/3/10
to foursquare API
Is it safe to assume that anything other than a response code other
than 200 from a request that I've got an error on my hands?

And if I do get a number other than 200, that's when I can parse the
XML error block for the message?

naveen

unread,
Apr 3, 2010, 6:58:30 AM4/3/10
to foursqu...@googlegroups.com
yes, that's a good assumption

40x will be errors 

LJHarb

unread,
Apr 3, 2010, 2:30:47 PM4/3/10
to foursquare API
In a RESTful API, 201 is also a success code on successful creation of
a resource (usually from a POST or PUT).

Danny Pier

unread,
Apr 3, 2010, 6:25:10 PM4/3/10
to foursquare API
good to know, thanks!
Reply all
Reply to author
Forward
0 new messages