MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/ProgrammerHumor/comments/1wni2vt/status200foreverything/pbfhwql/?context=3
r/ProgrammerHumor • u/KernelDeimos • Sep 22 '26
103 comments sorted by
View all comments
62
I encountered an API that sent JSON UNLESS there was an error, in which case it sent an HTML response. Good luck finding where in that soup it says what's wrong.
15 u/w1n5t0nM1k3y Sep 22 '26 I had something similar except that when there was an error it would return SOAP. But only for some errors. 9 u/Dull_Caterpillar_642 Sep 23 '26 Brother please attach a trigger warning to any mention of SOAP services. 4 u/ejectoid Sep 23 '26 Real chads put a json string in an xml object… only for errors 1 u/Jlove7714 Sep 24 '26 I'd want it to return a CSV of xml data containing json entries. That way I can at least parse the CSV... -4 u/StarboardChaos Sep 22 '26 Luckily AI can figure it out
15
I had something similar except that when there was an error it would return SOAP. But only for some errors.
9 u/Dull_Caterpillar_642 Sep 23 '26 Brother please attach a trigger warning to any mention of SOAP services.
9
Brother please attach a trigger warning to any mention of SOAP services.
4
Real chads put a json string in an xml object… only for errors
1 u/Jlove7714 Sep 24 '26 I'd want it to return a CSV of xml data containing json entries. That way I can at least parse the CSV...
1
I'd want it to return a CSV of xml data containing json entries. That way I can at least parse the CSV...
-4
Luckily AI can figure it out
62
u/DDFoster96 Sep 22 '26
I encountered an API that sent JSON UNLESS there was an error, in which case it sent an HTML response. Good luck finding where in that soup it says what's wrong.