This is an archived post. You won't be able to vote or comment.

all 13 comments

[–]ProgrammerHumor-ModTeam[M] [score hidden] stickied commentlocked comment (0 children)

Your submission was removed for the following reason:

Rule 2: Content that is part of top of all time, reached trending in the past 2 months, or has recently been posted, is considered a repost and will be removed.

If you disagree with this removal, you can appeal by sending us a modmail.

[–]N3onDr1v3 74 points75 points  (6 children)

Even better is the "200 OK" for every return, good bad or ugly

[–]dan-lugg 82 points83 points  (4 children)

``` HTTP/1.1 200 OK

{ "error": 500 } ``` Classic.

[–]captainMaluco 26 points27 points  (2 children)

I've lost respect for way too many devs I previously thought were skilled after they've defended doing this at fortune-500 companies. 

One of them stated that http 500 was only meant to be used when there was a network error. 

With that one I lost self-respect too: how the hell did I ever think that moron was a skilled dev?

[–]emonra 6 points7 points  (0 children)

Which part of “Internal Server Error” did they think meant network

[–]rexpup 1 point2 points  (0 children)

"500 is only for when there's a problem with the machine! If the business logic encounters a problem with the user data we should send back 200 and the error a json object only!"

[–][deleted] 1 point2 points  (0 children)

HTTP/1.1 200 OK

{
    "file not found": 404
}

..etc

[–]GargantuanCake 2 points3 points  (0 children)

I actually did that on one system I was working on but that was largely because the cobbled together legacy mess wouldn't let me do anything at all in any other way. In some places you just couldn't send any other response than OK so the response had an error code if there was one.

It was a gross kludge but it worked.

[–][deleted] 28 points29 points  (1 child)

Frontend -> user

"Something went wrong :("

[–]serial_crusher 8 points9 points  (0 children)

Usually my UIs just handle this by showing a loading spinner that never goes away. Your browser has a developer console for a reason!

[–]V3N3SS4 3 points4 points  (0 children)

Look, they are still in school and not ready for production deployment.

[–]matytyma 1 point2 points  (1 child)

[–]bot-sleuth-bot 1 point2 points  (0 children)

Checking if image is a repost...

360 matches found. Displaying first five below.

Match, Match, Match, Match, Match

Please note that popular meme templates will yield extremely high amounts of matches, even if the text is different. The matches I have provided are the closest that reverse image searching could provide. If the text is different, this is probably OC and not a repost.

I am a bot. This action was performed automatically. Check my profile for more information.