28
m001
8y

Do NOT send a 200, when the response is NOT OK.

Comments
  • 1
    Exactly! But some people keep on sending 200 even for unsuccessful request.
  • 0
    I work with an API that sends 503 when the input is bad 😡
  • 1
    my response to this is 406
  • 1
    My CTO once argued that 200 is the correct response any time the server "successfully" receives a request from a client.
  • 0
    You should be a new CTO.
Add Comment