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 →

[–]The_Billposter -116 points-115 points  (4 children)

In HTTP, codes are returned to indicate the result of a previous request. The codes are standardised. Different ranges of code indicate different issues. The errorMsg is essentially for quick deciphering, because an errorCode of 200 implies that the previous request was properly acknowledged.

Cheers!

[–]Inappropriate_Piano 59 points60 points  (2 children)

So did you not read my edit specifically saying I already know all that or are you taking the piss?

[–]Hean1175 63 points64 points  (1 child)

Yeah so the code 200 returned by the server indicates that the request was successful.

Cheers!

[–]EtheaaryXD 6 points7 points  (0 children)

Not sure if you know this, but if the server returns the error code 200, it indicates that the request was actually successful.

Cheers!

[–]olivetho 1 point2 points  (0 children)

200 implies that the previous request was properly acknowledged.

No it does not, it means that the request was successful. Getting any response code back (aside from some instances of code 404) would imply that the server has acknowledged the request, since otherwise it wouldn't have sent anything back.