you are viewing a single comment's thread
view the rest of the comments
[–] 28 points 1 year ago* (8 children)

Yep, I’ve got one of these at work now. Technically, 200 can make sense here if you’re using HTTP as RPC transport, as the server relayed the request to its handler and returned the outcome, but damn if it’s not annoying to actually process the response.

I’ve also seen a lot of devs tie themselves into knots trying to map various execution types to the “semantically correct” HTTP code, but the thing is the abstraction of HTTP is not based around RPC and it’s ultimately a pretty weird fit that we’ve somehow come to view as normal.

  • source
  • hideshow 8 child comments
  • [–] 35 points 1 year ago (7 children)

    Then just return a 500 - Server error. Nice and obscure.

    The ability to separate "something wrong with what you sent" (4XX) and "something wrong on the server" (5XX) is very valuable in itself.

  • source
  • parent
  • hideshow 7 child comments
  • [–] 44 points 1 year ago* (5 children)

    Yep

    • 2xx - it's good
    • 3xx - not here cunt
    • 4xx - you don fucked up
    • 5xx - we fucked up, whatever you do aint changing shit.
  • source
  • parent
  • hideshow 5 child comments