Angelblue05 4130 Posted September 3, 2015 Share Posted September 3, 2015 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 More sharing options...
ebr 14910 Posted September 3, 2015 Share Posted September 3, 2015 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. 1 Link to comment Share on other sites More sharing options...
Angelblue05 4130 Posted September 3, 2015 Author Share Posted September 3, 2015 Oh ok. So no more surprises then! That's good lol Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now