-
Notifications
You must be signed in to change notification settings - Fork 342
Open
Labels
apiAPI servers and scrapersAPI servers and scrapers
Description
Describe the bug
Currently our API sits behind nginx, which means any errors such as 404 will return a HTML error page. This is somewhat awkward, as the rest of the API is in JSON. For consistency we should improve the error page.
At the very least it should consistently return an application/json
file for errors, and as a stretch goal we can do what Django REST server does and use accept
to distinguish between API users and browsers, and show a nice HTML error page only if the user is visiting the page using a browser.
Metadata
Metadata
Assignees
Labels
apiAPI servers and scrapersAPI servers and scrapers