What is 301 Status Code Or 502 Status Code OR 200 Status Code?
How Can I Memorize these Status Codes?
How theses Status Codes are different from each other?
Do you also confused with these status codes & want to know about them separately in simple languages?
So, Don’t worry here in this blog we will learn about them!
What are HTTP Status Codes?
According to Wikipedia:
“Status codes are issued by a server in response to a client’s request made to the server.”
The HTTP is status codes made up of 3 Digit and the first digit of every status code specifies one of five standards Class of responses.
The IANA (Internet Assigned Numbers Authority) Maintains these all status codes registry.
Status Codes & Descriptions!
- 1: 1xx : Informational Status Code : This Status Code simply means that request has received and the process is continuing.
- 2: 2xx : Success Status Codes: This status code defines that action is successfully received, understood & accepted.
- 3: 3xx : Redirection Status Codes: Most of us know about this status code that it describes about the redirections.
- 4: 4xx : Clients Error Status Codes: Most of us also faced this status code & it means that request contains incorrect syntax or can’t be fulfilled.
- 5 : 5xx : Server Error Status Codes: this status code means the server failed to fulfill an apparently valid requests.
Let’s read about them more deeply.
1 : 1xx: Informational Status Code
Basically there are two type of Informational Status Codes:
100 – Continue Status Code – It means that Only a part of the request has been received by the server, but as long as it has not been rejected, the client should continue with the request.
101 – Switching Protocol Status Code – The server switches protocol.
2 : 2xx: Successful Status Codes
There are seven types of Successful Status Codes:
200 – OK Status Code – It means the request is OK.
201 – Created Status Code – The request is complete, and a new resource is created.
202 – Accepted Status Code – The request is accepted for processing, but the processing is not complete.
203 – Non-authoritative Information Status Code – The information in the entity header is from a local or third-party copy, not from the original server.
204 – No Content Status Code – A status code and a header are given in the response, but there is no entity-body in the reply.
205 – Reset Content Status Code – The browser should clear the form used for this transaction for additional input.
206 – Partial Content Status Code – The server is returning partial data of the size requested. Used in response to a request specifying a Range header. The server must specify the range included in the response with the Content-Range header.
3: 3xx : Redirections Status Codes
Basically there are 8 types of Redirection Status Codes:
300 – Multiple Choice Status Code – A link list. The user can select a link and go to that location. Maximum five addresses.
301 – Moved Permanently Status Code – The requested page has moved to a new url.
302 – Found Status Code – The requested page has moved temporarily to a new URL.
303 – See Others Status Code – The requested page can be found under a different URL.
304 – Not Modified Status Code – This is the response code to an If-Modified-Since or If-None-Match header, where the URL has not been modified since the specified date.
305 – Use Proxy Status Code – The requested URL must be accessed through the proxy mentioned in the Location header.
306 – Unused Status Code – This code was used in a previous version. It is no longer used, but the code is reserved.
307 – Temporary Redirected Status Code – The requested page has moved temporarily to a new URL.
4: 4xx: Clients Error Status Codes
Basically There are 18 Types of Clients Error Status Codes:
400 – Bad Request Status Code – The server did not understand the request.
401 – Unauthorized Status Code – The requested page needs a username and a password.
402 – Payment required Status Code – You can not use this code yet.
403 – Forbidden Status Code – Access is forbidden to the requested page.
404 – Not Found Status Code – The server can not find the requested page.
405 – Method Not Allowed Status Code – The method specified in the request is not allowed.
406 – Not Acceptable Status Code – The server can only generate a response that is not accepted by the client.
407 – Proxy Authentication required Status Code – You must authenticate with a proxy server before this request can be served.
408 – Request Timeout Status Code – The request took longer than the server was prepared to wait.
409 – Conflict Status Code – The request could not be completed because of a conflict.
410 – Gone Status Code – The requested page is no longer available.
411 – Length Required Status Code – The “Content-Length” is not defined. The server will not accept the request without it .
412 – Precondition Failed Status Code – The pre condition given in the request evaluated to false by the server.
413 – Request Entity Too Large Status Code – The server will not accept the request, because the request entity is too large.
414 – Request URL Too Long Status Code – The server will not accept the request, because the url is too long. Occurs when you convert a “post” request to a “get” request with a long query information .
415 – Unsupported Media Types Status Code – The server will not accept the request, because the mediatype is not supported .
416 – Requested Range Not Satisfied Status Code – The requested byte range is not available and is out of bounds.
417 – Expectations Failed Status Code – The expectation given in an Expect request-header field could not be met by this server.
5: 5xx: Error Code Status Codes
500 – Internal Server Error Status Code – The request was not completed. The server met an unexpected condition.
501 – Not Implemented Status Code – The request was not completed. The server did not support the functionality required.
502 – Bad Gateway Status Code – The request was not completed. The server received an invalid response from the upstream server.
503 – Service Unavailable Status Code – The request was not completed. The server is temporarily overloading or down.
504 – Gateway Timeout Status Code – The gateway has timed out.
505 –HTTP Version Not Supported Status Code – The server does not support the “http protocol” version.
So, these were the last Status Code and I hope that now you are able to understand them easily but don’t worry guys if you have any kind of issue while understanding them below in the comment section you can type your any kind of query.