Lukas' Notes

web

Definition

HTTP Status Code

An HTTP status code is the three-digit number in the status line of an HTTP response that reports the outcome of the request. Codes are grouped by leading digit:

ClassMeaning
2XXOK — request succeeded
3XXRedirect — further action needed to reach the resource
4XXClient error — the request was malformed or unauthorised
5XXServer error — the server failed to fulfil a valid request

The status code is followed by a human-readable reason phrase, e.g. 302 Found for a redirect sent together with a Location response header.