Open toxdes opened 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.
200 OK
status:["error"|"warning"|"success"]
However, to be on the safe side, I should use HTTP status codes.
Currently, I use
200 OK
for everything, and handle errors manually on both front-and-backend by introducingstatus:["error"|"warning"|"success"]
in every JSON response.However, to be on the safe side, I should use HTTP status codes.