Return 400 on API
Thank you for the wonderful API. I'm evaluating it as part of a proof of concept web app.
An issue I have found is the API returns a 200 OK status on error. This is manageable with the payload, but it would be easier if an appropriate 4xx status was returned instead. The API documentation shows this issue.
Here's an example:
curl -i https://api.waqi.info/feed/boise/?token=badtoken
HTTP/1.1 200 OK
Date: Thu, 07 Sep 2017 15:00:35 GMT
Content-Type: application/json; charset=UTF-8