"Your documentation doesn't specify what should be returned if there is no item matching the id, so currently I'm just gonna have it throw a 504"

Why on earth would you? What's wrong with you, you sick bastard?

  • 3
    They just randomly picking error codes?
  • 0
    depending on the shonky lookup, it might be right 😎
  • 5
    The number of people I've had to explain status codes to is unreal.

    The worst though is when people who own intermediary layers refuse to forward status codes because it might be seen as their layer producing an error. 😠
  • 0
    What the actual fuck
  • 1
    @SortOfTested intermediate layers are tricky. Something like 404, forward that. But I can never be sure what kind of information are exposed on all the 500 errors. I'd rather log those and throw my own 500
  • 5
    That's fine. The people I want to stab in the throat are the gateway fucks who eat my 500 and return a 200 because nothing was wrong at their layer.
  • 0
    Amateur mistake. Just throw 500 even if it's the client who fucks up.
Add Comment