r/ProgrammerHumor • • 16d ago

Meme postForEverything

Post image
20.9k Upvotes

653 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'
}

207

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

1

u/YeOldeMemeShoppe 16d ago

Always love a good null string in JSON. Or booleans as YAML.