Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make more use of HTTP status codes #79

Open
KiithNabaal opened this issue Jun 19, 2019 · 0 comments
Open

Make more use of HTTP status codes #79

KiithNabaal opened this issue Jun 19, 2019 · 0 comments
Assignees

Comments

@KiithNabaal
Copy link
Contributor

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants