Jump to content

Status code


Angelblue05

Recommended Posts

Angelblue05

Is there a list somewhere that shows all the possible response code from the server? It would be nice to have this info part of the api documentation (similar to what trakt does, for example).

 

For example, 401 can be either: ParentalControl, UnauthorizedAccessException or just plain security exception (api key expired). It would be great to know all possibilities so I can adjust how our Kodi add-on reacts in certain responses. Currently, I've been going off people's log showing exceptions and adding them as I go, but I feel there should already be documentation somewhere??

Link to comment
Share on other sites

I think the 401 is the only one that ever has any further detail (and you just enumerated them all) over what the normal HTTP status means.  Strictly speaking the Parental Control situation should probably return a 403 but we decided not to do that because it could break every app out there.  Balancing those kinds of changes is one of the hazards of an open API.

 

So, all other status codes returned should just be the normal HTTP interpretation.

  • Like 1
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...