toxdes / testiny-backend

An API back-end for https://testiny.live
https://api.testiny.live
GNU General Public License v3.0
0 stars 0 forks source link

Respect HTTP response status codes #7

Open toxdes opened 3 years ago

toxdes commented 3 years ago

Currently, I use 200 OK for everything, and handle errors manually on both front-and-backend by introducing status:["error"|"warning"|"success"] in every JSON response.

However, to be on the safe side, I should use HTTP status codes.