Language / Technology

Why does HTTP have status codes?

Short answer

Status codes give clients a shared numeric summary of how a server handled a request.

How it works

Codes must be read in HTTP context. They help distinguish success, redirection, client problems, and server problems.

Key point

The practical point is this: They help distinguish success, redirection, client problems, and server problems.

References