Wynncraft / WynncraftAPI

Official Wynncraft Public API (Documentation & Issue Tracker)
https://docs.wynncraft.com/
21 stars 10 forks source link

Request: When there is an error with a request include the relevant error code as the HTTP status code #6

Closed Bedo9041 closed 5 years ago

Bedo9041 commented 5 years ago

Minor request, but would make error handling easier for me. Example: GET https://api.wynncraft.com/v2/player/DoesntExist/stats currently returns 200 OK with the 400 Bad Request specified in the body.

colinrioux commented 5 years ago

Patched in 2.0.3