BuzzerBeater Forums

BBAPI Support > http status codes fix

http status codes fix

Set priority
Show messages by
From: jantzen
This Post:
00
187946.1
Date: 6/22/2011 6:08:14 PM
Overall Posts Rated:
5353
Hi I think there is an error in the http status codes that you respond with.

The log on succesful should return code 200
but the failure login should return 401

the server error should return 500

http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html

not using the right return codes is annoying.

I have also used the set cookies again, for a new login and again it was annoying that the HttpOnly, is set incorrectly and in 2 different ways.
first with a comma and second without anything ( , or ; )
I think this is another error wich should be fixed.
These things would help people getting started programmering against the api.

This Post:
00
187946.2 in reply to 187946.1
Date: 5/17/2012 6:51:14 AM
TrenseRI
III.2
Overall Posts Rated:
36003600
Second Team:
ChiLeaders
First of all, thanks for the heads up. Second, please write the exact pages and detailed problems. I'll work on them when I have some free time.

This Post:
00
187946.3 in reply to 187946.2
Date: 5/18/2012 12:52:05 PM
Overall Posts Rated:
5353
Hi

About the http codes, that is about all the XML support pages.

If you request something and isn't logged in or the session has expired then you shouldn't get a http code 200 og a xml page with access denied.

I would suggest that you instead got a http return code 403.X