openfoodfacts-server
openfoodfacts-server copied to clipboard
Error messages for the API should be JSON not HTML
See https://github.com/openfoodfacts/openfoodfacts-server/pull/7331#discussion_r969616671
Currently if an error occurs, we return a text in html, even if we are serving an API call. This is impractical for the API to get the error message.