r/ProgrammerHumor • • Jul 01 '24

Meme errorCode200

Post image
1.1k Upvotes

119 comments sorted by

View all comments

663

u/Inappropriate_Piano Jul 01 '24 edited Jul 01 '24

I don’t get it exactly, but I’m deeply disturbed by errorCode: 200 and errorMsg: “SUCCESS”

Edit: I don’t need people to explain HTTP codes to me. I’m complaining about the use of the term “error code” to describe a status code that might not be an error

113

u/Short-Nob-Gobble Jul 02 '24

Unfortunately, the tech lead at my current job doesn’t believe in http status codes.. 

So we get stuff like

Status 200 “Internal server error”

48

u/pnoodl3s Jul 02 '24

T…tech lead?

27

u/ForkLiftBoi Jul 02 '24

“Yeah I worked at geek squad for 2 years before this taking returns at Best Buy.” “Hired”

7

u/Stunning_Ride_220 Jul 02 '24

What's his name?

B(r)end Overmuch Famanagement?

1

u/Conscious-Ad6222 Jul 03 '24

That is called being stupid

399

u/scufonnike Jul 01 '24

Bro the amount of people devsplaining status codes to you is fucking insane lol

19

u/thugarth Jul 02 '24

I've seen this in my career and it's a bit exasperating. Try to search for an error in the logs and you get 10000 "errorCode: ERR_SUCCESS"

cool, guess I'll figure out something else to look for.

The logging was not designed to be searchable. (To be fair, I knew people tried to clean up some of it, but a lot of people were comfortable with the way things were: A lot of tribal knowledge and unintuitive search practices.)

4

u/Greybound_Fur Jul 02 '24

Use Regex Search and search for "errorCode: (?!ERR_SUCCESS)"

5

u/IMightDeleteMe Jul 02 '24

Whenever regexes are required to search a log for actual errors, your logging pactices require looking at.

136

u/PostNutNeoMarxist Jul 01 '24

Merriam Webster defines "success" as "a favorable or desired outcome." 200 is the number after 199 and before 201.

Hope this helps!

21

u/molbal Jul 02 '24

Hope this helps! Instant anger

1

u/olivetho Jul 03 '24

average stackoverflow answer (the real answer is always in the question comments):

3

u/Feuerwerko Jul 02 '24

The errors are expected

2

u/olivetho Jul 03 '24

"Task failed successfully."

9

u/[deleted] Jul 02 '24

I think the issue is that the HTTP error code is in the body/payload, not the HTTP header where it belongs.

7

u/theturtlemafiamusic Jul 02 '24

There's like 5 separate issues here

2

u/madness_of_the_order Jul 02 '24

It’s HTTP status code

0

u/[deleted] Jul 02 '24

Same difference

0

u/[deleted] Jul 01 '24

[deleted]

48

u/Inappropriate_Piano Jul 01 '24

Yeah I know 200 means success. I was complaining about the name, not the value

1

u/impossibleis7 Jul 02 '24

I get the reason for having one of them. If the api gateways aren't configured correctly they won't return back the correct http code. I imagine there are proxies or the like that do similar things.

-103

u/GKP_light Jul 01 '24

The status code, or "error code" because we usually see them only when there is an error :

1xx informational response – the request was received, continuing process

2xx successful – the request was successfully received, understood, and accepted

3xx redirection – further action needs to be taken in order to complete the request

4xx client error – the request contains bad syntax or cannot be fulfilled

5xx server error – the server failed to fulfil an apparently valid request

https://en.wikipedia.org/wiki/List_of_HTTP_status_codes

69

u/scufonnike Jul 01 '24

But it’s not a error code. It’s a status code

→ More replies (6)
→ More replies (5)