• reboot6675@sopuli.xyz
    link
    fedilink
    arrow-up
    3
    ·
    3 months ago

    Been having similar case with dev teams who have coded every error to be 500. User typed the wrong URL? 500. User tried to access a page without logging in? 500… Makes detecting real errors a pain

    • Blackmist@feddit.uk
      link
      fedilink
      English
      arrow-up
      1
      ·
      3 months ago

      And on the other side of this are JS devs that check for neither error response codes or error messages, and write an error into their own data as if it’s the result they were after.

      Always fun to see GET /orders/{error : “invalid branchID provided”} in your logs.

    • jj4211@lemmy.world
      link
      fedilink
      arrow-up
      1
      ·
      3 months ago

      I’d easily take that over ‘200 for everything’. If at least errors are distinct from success, I’d take that as a win. My standards have been lowered by so many ‘200 for everything’ backends…