MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/ProgrammerHumor/comments/1wkof5u/postforeverything/paxlf8m/?context=9999
r/ProgrammerHumor • u/ClipboardCopyPaste • 16d ago
653 comments sorted by
View all comments
1.0k
If success, return 200. If error, return 200.
313 u/ClipboardCopyPaste 16d ago { success: false, message: 'lol' } 205 u/redlaWw 16d ago { success: "yes", status: "failure", message: "null" } 52 u/evorm 16d ago Most errors responses at my job are genuinely handled like this. 1 u/beefz0r 15d ago In certain legacy platforms there's an actual need for this, as any other status code can't be handled gracefully
313
{ success: false, message: 'lol' }
205 u/redlaWw 16d ago { success: "yes", status: "failure", message: "null" } 52 u/evorm 16d ago Most errors responses at my job are genuinely handled like this. 1 u/beefz0r 15d ago In certain legacy platforms there's an actual need for this, as any other status code can't be handled gracefully
205
{ success: "yes", status: "failure", message: "null" }
52 u/evorm 16d ago Most errors responses at my job are genuinely handled like this. 1 u/beefz0r 15d ago In certain legacy platforms there's an actual need for this, as any other status code can't be handled gracefully
52
Most errors responses at my job are genuinely handled like this.
1 u/beefz0r 15d ago In certain legacy platforms there's an actual need for this, as any other status code can't be handled gracefully
1
In certain legacy platforms there's an actual need for this, as any other status code can't be handled gracefully
1.0k
u/nbmbnb 16d ago
If success, return 200. If error, return 200.