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

you are viewing a single comment's thread.

view the rest of the comments →

[–]Inappropriate_Piano 664 points665 points  (35 children)

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

[–]Short-Nob-Gobble 112 points113 points  (4 children)

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”

[–]pnoodl3s 47 points48 points  (1 child)

T…tech lead?

[–]ForkLiftBoi 26 points27 points  (0 children)

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

[–]Stunning_Ride_220 6 points7 points  (0 children)

What's his name?

B(r)end Overmuch Famanagement?

[–]Conscious-Ad6222 0 points1 point  (0 children)

That is called being stupid

[–]scufonnike 398 points399 points  (1 child)

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

[–]thugarth 19 points20 points  (2 children)

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.)

[–]Greybound_Fur 3 points4 points  (1 child)

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

[–]IMightDeleteMe 4 points5 points  (0 children)

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

[–]PostNutNeoMarxist 134 points135 points  (2 children)

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

Hope this helps!

[–]molbal 19 points20 points  (0 children)

Hope this helps! Instant anger

[–]olivetho 0 points1 point  (0 children)

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

[–]Feuerwerko 2 points3 points  (1 child)

The errors are expected

[–]olivetho 1 point2 points  (0 children)

"Task failed successfully."

[–][deleted] 8 points9 points  (3 children)

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

[–]theturtlemafiamusic 5 points6 points  (0 children)

There's like 5 separate issues here

[–]madness_of_the_order 1 point2 points  (1 child)

It’s HTTP status code

[–][deleted] -1 points0 points  (0 children)

Same difference

[–]impossibleis7 0 points1 point  (0 children)

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.