• @madcaesar@lemmy.world
    link
    fedilink
    02 months ago

    Here I am preferring 200, with success boolean / message string…

    Iike HTTP errors codes for real fuck up’s, if I see 500 somethings fucked in the app, otherwise a standardised json response body seems way easier

    • @fuzzzerd@programming.dev
      link
      fedilink
      English
      12 months ago

      What about both? User supplies bad input? HTTP 400 with response body json describing the error in a standard format?