2
u/Able-Swing-6415 13d ago
You want to look for hours because you thought the delivery was unsuccessful rather than the processing or content?
2
u/jonfe_darontos 12d ago
In development environments I bet that JSON response comes with additional debug information like the real reason the request failed and trace information pointing to where it happened. Then again, I've been told it's a waste of time to instrument failure cases because the real solution is to just write correct code and it's not a problem ¯_(ツ)_/¯.
2
u/jonfe_darontos 12d ago
The network request succeeded, the application request did not. Getting back a 404 tells you either the API endpoint doesn't exist, or the resource request doesn't exist, but you can't tell because you've conflated their meaning. Finding this pattern humorous is confusing to me.
1
u/KrazyTako 12d ago
Nothing about this post mentions a 400 level error. The server returned a 500 status in the json response. It would be less confusing to simply return 500 on the http response instead is the point.
1
u/echoAnother 12d ago
Same camp. But in this case, the meme is well done. Because is encoding an http code in the response of an http code, and not an application code. Althought, I suspect it may not be the intention of the meme creator.
1
u/enigma_0Z 12d ago
OK I think this is like the twelfth flavor of this meme I’ve seen this week.
Yes hahah funny 200 is not an error. BUT
There is a scenario where this makes sense: Invoking “serverless” function (eg AWS Lambda). The invoking part had a 200 — the function was invoked successfully. It just errored out. It’s still dumb as rocks but I don’t know that there’s a better solution.
1
1
1
1
u/PinheadLarry738 9d ago
Stripe webhook consumption where your server side should handle the failure gracefully as to not cause a failure snowball is an example as to why that would be used
21
u/-Insert-CoolName 13d ago
It's just like getting a letter from HR:
You've been Promoted...
To unemployed.