5

Whoever uses "status" as boolean in responses to indicate whether error happened (true) or not (false)??????!!

Comments
  • 1
    I've seen a "success" flag before, but it's kind of redundant considering you deal with HTTP 99.9% of the time and it already has status codes defined
  • 0
    @LotsOfCaffeine exactly! And here it's as if frontend doesn't trust backend with HTTP 200 OK at all
  • 0
    Depends on the context
  • 0
    Also if the "error" key exists, it's an error. Otherwise read the "response" key for the actual response...
Add Comment