HTTP Status Code
HTTP Status Code
Status
Code
(1xx to 5xx) with examples
Swarup Mukharjee
1xx – Informational
Code Meaning Description
Initial part of
request received,
100 Continue
continue.
Server switches
Switching protocols as
101
Protocols requested.
Server is processing
102 Processing the request.
Swarup Mukharjee
2xx – Success
Code Meaning Description
Request
200 OK
succeeded.
Resource
201 Created successfully
created.
Success, but no
204 No Content content to return.
Swarup Mukharjee
3xx – Redirection
Code Meaning Description
Resource
Moved permanently
301
Permanently moved to another
URL.
Temporarily
302 Found moved to another
URL.
Resource temporarily
Temporary
307 moved, method
Redirect unchanged.
Swarup Mukharjee
4xx – Client Error
Code Meaning Description
Malformed or
400 Bad Request
invalid request.
Authentication
401 Unauthorized
required.
Access denied
403 Forbidden despite valid
authentication.
Resource not
404 Not Found
found on server.
Swarup Mukharjee
4xx – Client Error
Code Meaning Description
Swarup Mukharjee
5xx – Server Error
Code Meaning Description
Server received
502 Bad Gateway
invalid response.
Upstream server
Gateway
504 failed to respond in
Timeout
time.
Swarup Mukharjee
"Don't watch the
clock; do what it
does. Keep going."
— Sam Levenson
Swarup Mukharjee