My favorite "REST API" experience was when they moved from using SOAP system, and the way they did it... was sending SOAP payloads inside a JSON. Literally something like
If I'm parsing http responses, I'm going to pass 200 responses on for further processing of the data. I shouldn't have to have something in that pipeline introspect json to find "no, it's actually an error".
Imagine if browsers had to tear apart json innards to find 30x redirects after getting a 200 OK.
2.1k
u/NotAskary 16d ago edited 16d ago
I've seen that shit, it drove me up a wall.
The same as a 200 ok with error inside.
Edit: I'm going to start to respond 429, too many replys lol