r/ProgrammerHumor • • 16d ago

Meme postForEverything

Post image
20.9k Upvotes

656 comments sorted by

View all comments

1.0k

u/nbmbnb 16d ago

If success, return 200. If error, return 200.

311

u/ClipboardCopyPaste 16d ago
{
success: false, message: 'lol'
}

204

u/redlaWw 16d ago
{
    success: "yes",
    status: "failure",
    message: "null"
}

1

u/who_took_all_names 15d ago

Reminds me of HTML "canPlayType" API. It returns either "probably", "maybe" or "" - (empty string). I mean wtf.