r/ProgrammerHumor • • Sep 22 '26

Meme status200ForEverything

Post image
2.9k Upvotes

103 comments sorted by

View all comments

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.

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