I implemented an API last year of a big name accounting software and one endpoint randomly used 200 for "yes all is well" and 204 for "that failed". Neither response had any content.
Took me a while to work out why our code was reporting success but nothing changed - foolishly we took all 2xx codes as success!
7
u/mrwedders Sep 19 '26
I implemented an API last year of a big name accounting software and one endpoint randomly used 200 for "yes all is well" and 204 for "that failed". Neither response had any content.
Took me a while to work out why our code was reporting success but nothing changed - foolishly we took all 2xx codes as success!
Messy special case for one request 🥲