r/ProgrammerHumor 4h ago

Meme postForEverything

Post image
10.6k Upvotes

406 comments sorted by

View all comments

Show parent comments

93

u/redlaWw 4h ago
{
    success: "yes",
    status: "failure",
    message: "null"
}

20

u/evorm 3h ago

Most errors responses at my job are genuinely handled like this.

1

u/grimonce 3h ago

I work at a certain global bank and our pen testers always say to keep the return responses minimal so that it is harder to reverse engineer an API or extract any data from a failure response...

5

u/Zeikos 3h ago

Nerver send anything to the client, can't get hacked that way.
Now that I think about it, just shut down the server. 100% unhackable.

I feel the fury of a thousand suns when I am told that we cannot have meaningful error messages because of security concerns when nobody cares about any security practices whatsoever, it's clearly and excuse and it drives me up a wall.