39
fyzrn
8y

Most irritating thing I have to deal with when working on a project with a third-party:

{
status: 200,
message: "error"
}

Comments
  • 1
    And what is the actual HTTP status code?
  • 2
    @cheke 404 - Error not found
  • 2
    @cheke believe it or not - 200
  • 3
    It's called "The Json Api Paradox" ^^
  • 0
    Yeah..i know some guys who could implement such a mess
  • 1
    I've seen people that prefer APIs like this, allways 200 and send errors in the payload, I don't get the point.
  • 1
    @carrizo "status:200" in the response payload could be a fully documented custom status...nevertheless it is completely misleading as it stands.
Add Comment