synergylabs/BuildingDepot

Make more use of HTTP status codes

Opened this issue · 0 comments

An endpoint returning a 200 HTTP status code, but the response JSON success field being set as "False" is contradictory.

Example:
https://buildingdepot.andrew.cmu.edu/api/CentralService/sensor.html#search-sensors

If no sensors exist, it should return an HTTP 404.