HTTP Status Code
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 Code | Message | Explanation |
---|---|---|
100 | Continue | The server has received the requested header and ask the client (browser) to continue to send the request body. |
101 | Switching Protocols | The client (browser) has asked the server to switch protocols and the server has agreed to do so. |
102 | Processing | When 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. |
103 | Checkpoint | Used to return some response headers before file HTTP message. |
2xx: Successful
Status Code | Message | Explanation |
---|---|---|
200 | OK | The request sent successfully and the server received the response. |
201 | Created | The request has been fulfilled, and a new resource is created. |
202 | Accepted | The request has been accepted for processing, but the processing has not been completed. |
203 | Non-Authoritative Information | The request sent successfully and the server is a transforming proxy, thus the response may be from another resource. |
204 | No Content | The server successfully processed the request and is not returning any content. |
205 | Reset Content | The 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. |
206 | Partial Content | The 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 Code | Message | Explanation |
---|---|---|
300 | Multiple Choices | Here 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. |
301 | Moved Permanently | The requested page has moved to a new URL. |
302 | Found | The requested page has moved temporarily to a new URL. |
303 | See Other | The requested page can be found under a different URL. |
304 | Not Modified | Indicates that the resource has not been modified since the version specified. |
306 | Use Proxy | The requested resource is available only through a proxy. |
307 | Temporary Redirect | The requested page has moved temporarily to a new URL. |
308 | Permanent Redirect | The requested page has moved permanently to a new URL. |
4xx: Client Error
Status Code | Message | Explanation |
---|---|---|
400 | Bad Request | The server cannot process the request due to an apparent client error like size too large, Invalid request message framing and syntax error. |
401 | Unauthorized | The request was a legal request, but the server is refusing to respond to it. |
402 | Payment Required | Reserved for future use. |
403 | Forbidden | The 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. |
404 | Not Found | The requested resource could not be found but may be available in the future. |
405 | Method Not Allowed | A request method is not supported for the requested resource. |
406 | Not Acceptable | The server can only generate a response that is not accepted by the client. |
407 | Proxy Authentication Required | The client must first authenticate itself with the proxy. |
408 | Request Timeout | The server timed out waiting for the request. |
409 | Conflict | The request could not be processed because of conflict in the request. |
410 | Gone | The requested page is no longer available |
411 | Length Required | The "Content-Length" is not defined. The server will not accept the request without specifing content length. |
412 | Precondition Failed | The server does not meet one of the preconditions that the client (browser) put on the request. |
413 | Request Entity/Payload Too Large | The request is larger than the server is willing or able to process. |
414 | Request-URI Too Long | The URI provided was too long for the server to process. |
415 | Unsupported Media Type | The server will not accept the request, because the media type is not supported . |
416 | Requested Range Not Satisfiable | The client has asked for a portion of the file, but the server cannot supply that portion. |
417 | Expectation Failed | The server cannot meet the requirements of the Expect request-header field. |
5xx: Server Error
Status Code | Message | Explanation |
---|---|---|
500 | Internal Server Error | A generic error message, given when no more specific message is suitable. |
501 | Not Implemented | The server either does not recognize the request method, or it lacks the ability to fulfil the request. |
502 | Bad Gateway | The server was acting as a gateway or proxy and received an invalid response from the upstream server. |
503 | Service Unavailable | The server is currently unavailable (Server turned off or down-time due to more request). Generally, this is a temporary state. |
504 | Gateway Timeout | The server was acting as a gateway or proxy and did not receive a timely response from the upstream server. |
505 | HTTP Version Not Supported | The server does not support the HTTP protocol version used in the request. |
507 | Insufficient Storage | The server is unable to store the representation needed to complete the request. |
511 | Network Authentication Required | The client needs to authenticate to gain network access. |
Reminder
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.