http responsecode

8 views
Skip to first unread message

fadenb

unread,
Mar 20, 2008, 9:53:50 AM3/20/08
to Twitxr API developers
Hi.

I noticed that if I a request an api call with the wrong user
credentials the webserver returns "200 OK".
Wouldn't it be better to send "401 Unauthorized" instead of the wrong
credentials message in the response body?

Regards
Tristan

Victor (twitxr.com founder)

unread,
Mar 25, 2008, 5:40:38 AM3/25/08
to Twitxr API developers
Well, we designed to return a "200 OK" + a high-level XML error
description, just for communicate to API devs the error cause (there
are different possible errors non login related)

cheers
Reply all
Reply to author
Forward
0 new messages