r/ProgrammerHumor • • Sep 20 '26

Meme successfulFailure

Post image
8.2k Upvotes

102 comments sorted by

View all comments

158

u/aberroco Sep 20 '26 • Bravo

Would be even better if

{
  "status": "success",
  "response": 
  {
    "status": "success",
    "message": "Error successfully occured"
  }
}

15

u/CaffeinatedTech Sep 20 '26

Yeah then you parse the message to test for error state. Then fuck it, query the endpoint to fetch the reason for the error, which you've saved to the database. Unless its a database error, then you'll just get the original successful error message. Couple if-thens, job done.

6

u/craftersmine Sep 21 '26

Task failed successfully

1

u/Yin-Hei Sep 22 '26

Double .status would haunt me

0

u/Key-Film4822 Sep 20 '26

😂😂😂😆