xbl-web-api icon indicating copy to clipboard operation
xbl-web-api copied to clipboard

Handle all errors properly

Open jcxldn opened this issue 6 years ago • 0 comments

First of all, errors are not handled at all in some routes such as userstats and profile settings, and when errors are handled, only a few errors (namely 401 and 400) return a response code and message instead of empty data.

To-Do

  • [ ] Handle errors in all routes
    • Add to existing routes
    • [ ] UserStats
    • [ ] ProfileSettings
    • [ ] TitleStats
    • [ ] LegacySearch
  • [ ] Return error messages when appropriate
  • [ ] Return the correct response code instead of empty data
  • [ ] If an unexpected response code is recieved, do not return 200 and a blank message.

jcxldn avatar May 24 '19 14:05 jcxldn