HTTP Status Code

You are Here:

What is HTTP Status Code?

Whenever a browser sends a request to a webserver to get a webpage, image, video or any file. The web server will send a status code to a web browser though the requested file may or may not be available.

The following tables will give you the complete status code send by the webserver.

1xx: Informational Response

Status CodeMessageExplanation
100ContinueThe server has received the requested header and ask the client (browser) to continue to send the request body.
101Switching ProtocolsThe client (browser) has asked the server to switch protocols and the server has agreed to do so.
102ProcessingWhen the client (browser) sends a resquest body which includes too many sub request, then a server will return 102 status code to indicate that your request has received and is processing the request. But no response is available at the moment. This prevent the client (browser) in assuming the request was lost or from timing out.
103CheckpointUsed to return some response headers before file HTTP message.

2xx: Successful

Status CodeMessageExplanation
200 OKThe request sent successfully and the server received the response.
201CreatedThe request has been fulfilled, and a new resource is created.
202AcceptedThe request has been accepted for processing, but the processing has not been completed.
203Non-Authoritative InformationThe request sent successfully and the server is a transforming proxy, thus the response may be from another resource.
204No ContentThe server successfully processed the request and is not returning any content.
205Reset ContentThe server successfully processed the request, but is not returning any content. Unlike a 204 response, this response requires that the client (browser) reset the document view.
206Partial ContentThe server is delivering only part of the resource due to a range header sent by the client. This Status code occurs during downloading and live streaming.

3xx: Redirection

Status CodeMessageExplanation
300Multiple ChoicesHere user is provided with multiple choice to choose from. For example, in youtube user is provided with video resolution to choose from and the corresponding redirection takes place.
301Moved PermanentlyThe requested page has moved to a new URL.
302FoundThe requested page has moved temporarily to a new URL.
303See OtherThe requested page can be found under a different URL.
304Not ModifiedIndicates that the resource has not been modified since the version specified.
306Use ProxyThe requested resource is available only through a proxy.
307Temporary RedirectThe requested page has moved temporarily to a new URL.
308Permanent RedirectThe requested page has moved permanently to a new URL.

4xx: Client Error

Status CodeMessageExplanation
400Bad RequestThe server cannot process the request due to an apparent client error like size too large, Invalid request message framing and syntax error.
401UnauthorizedThe request was a legal request, but the server is refusing to respond to it.
402Payment RequiredReserved for future use.
403ForbiddenThe request was valid, but the server is refusing action as the user might not have the necessary permission. For example, Some American payment sites will send 403 status code, when requested from different location other than America.
404Not FoundThe requested resource could not be found but may be available in the future.
405Method Not AllowedA request method is not supported for the requested resource.
406Not AcceptableThe server can only generate a response that is not accepted by the client.
407Proxy Authentication RequiredThe client must first authenticate itself with the proxy.
408Request TimeoutThe server timed out waiting for the request.
409ConflictThe request could not be processed because of conflict in the request.
410GoneThe requested page is no longer available
411Length RequiredThe "Content-Length" is not defined. The server will not accept the request without specifing content length.
412Precondition FailedThe server does not meet one of the preconditions that the client (browser) put on the request.
413Request Entity/Payload Too LargeThe request is larger than the server is willing or able to process.
414Request-URI Too LongThe URI provided was too long for the server to process.
415Unsupported Media TypeThe server will not accept the request, because the media type is not supported .
416Requested Range Not SatisfiableThe client has asked for a portion of the file, but the server cannot supply that portion.
417Expectation FailedThe server cannot meet the requirements of the Expect request-header field.

5xx: Server Error

Status CodeMessageExplanation
500Internal Server ErrorA generic error message, given when no more specific message is suitable.
501Not ImplementedThe server either does not recognize the request method, or it lacks the ability to fulfil the request.
502Bad GatewayThe server was acting as a gateway or proxy and received an invalid response from the upstream server.
503Service UnavailableThe server is currently unavailable (Server turned off or down-time due to more request). Generally, this is a temporary state.
504Gateway TimeoutThe server was acting as a gateway or proxy and did not receive a timely response from the upstream server.
505HTTP Version Not SupportedThe server does not support the HTTP protocol version used in the request.
507Insufficient StorageThe server is unable to store the representation needed to complete the request.
511Network Authentication RequiredThe client needs to authenticate to gain network access.


Hi Developers, we almost covered 99.5% of HTML Tutorials with examples for quick and easy learning.

We are working to cover every Single Concept in HTML.

Please do google search for:

Join Our Channel

Join our telegram channel to get an instant update on depreciation and new features on HTML, CSS, JavaScript, jQuery, Node.js, PHP and Python.

This channel is primarily useful for Full Stack Web Developer.

Share this Page

Meet the Author