HTTP
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.
Request accepted but
202 Accepted not yet processed.
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.
Cached version is still
304 Not Modified valid.
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.
Method Not HTTP method not
405
Allowed supported.
Swarup Mukharjee
4xx – Client Error
Code Meaning Description
Server timed out
Request
408 waiting for the
Timeout
request.
Too Many Client sent too
429
Requests many requests.
Swarup Mukharjee
5xx – Server Error
Code Meaning Description
Internal General error on
500
Server Error server.
Server does not
Not
501 support the
Implemented
request.
Server received
502 Bad Gateway
invalid response.
Service Server is down or
503
Unavailable overloaded.
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