When a browser sends a request to a server, the server responds with a corresponding HTTP Status Code. This status code can be used to identify the status of the request. You might have seen error messages like 403 forbidden which means you don't have the required authority to view the page or 404 page not found error. A list of commonly seen HTTP status codes and their meaning are listed here.
There are mainly five types of HTTP Status Messages.
1) Information (1XX)
2) Successful (2XX)
3) Redirection (3XX)
4) Client Side Error (4XX)
5) Server Side Error (5XX)
Information (1XX)
100 Continue : It means that the server has received the request header and now its waiting for the request body.
101 Switching Protocols : This means that the client has requested the server to change protocols and the server accepts the request.
Successful (2XX)
200 OK : It is the standard response when everything goes OK.
202 Accepted : This means that the server has accepted the request for processing but has not yet completed the processing.
204 No Content : This means that the server has successfully processed the request but has no content to return.
Redirection (3XX)
301 Moved Permanently : This means that the requested page has been moved to a new URL.
307 Temporary Redirect : This means that the requested URL has been redirected to another URL.
Client Side Error (4XX)
400 Bad Request : The request cannot be processed due to bad syntax of the request.
401 Unauthorized : This means that authorization to view the content is possible but is not provided or failed.
403 Forbidden : The request is correct but the server is not responding to it. In this case authentication will not work.
404 Not Found : This means that the requested resource is not found.
408 Request Timeout : This means that the client has not supplied the request within the time specified by the server.
414 Request URI too long : The requested URI was too long for the server to process.
Server Side Error (5XX)
500 Internal Server Error : A general message when no specific error is suitable.
502 Bad Gateway : The server is acting as a proxy or gateway and an invalid response is received from the next server.
503 Service Unavailable : The server is temporarily unavailable due to high load or maintenance.
504 Gateway Timeout : The server is acting as a proxy or gateway and the next server didn't supply a timely response.
This is not a complete reference but lists only the most common status codes and their meanings.
There are mainly five types of HTTP Status Messages.
1) Information (1XX)
2) Successful (2XX)
3) Redirection (3XX)
4) Client Side Error (4XX)
5) Server Side Error (5XX)
Information (1XX)
100 Continue : It means that the server has received the request header and now its waiting for the request body.
101 Switching Protocols : This means that the client has requested the server to change protocols and the server accepts the request.
Successful (2XX)
200 OK : It is the standard response when everything goes OK.
202 Accepted : This means that the server has accepted the request for processing but has not yet completed the processing.
204 No Content : This means that the server has successfully processed the request but has no content to return.
Redirection (3XX)
301 Moved Permanently : This means that the requested page has been moved to a new URL.
307 Temporary Redirect : This means that the requested URL has been redirected to another URL.
Client Side Error (4XX)
400 Bad Request : The request cannot be processed due to bad syntax of the request.
401 Unauthorized : This means that authorization to view the content is possible but is not provided or failed.
403 Forbidden : The request is correct but the server is not responding to it. In this case authentication will not work.
404 Not Found : This means that the requested resource is not found.
408 Request Timeout : This means that the client has not supplied the request within the time specified by the server.
414 Request URI too long : The requested URI was too long for the server to process.
Server Side Error (5XX)
500 Internal Server Error : A general message when no specific error is suitable.
502 Bad Gateway : The server is acting as a proxy or gateway and an invalid response is received from the next server.
503 Service Unavailable : The server is temporarily unavailable due to high load or maintenance.
504 Gateway Timeout : The server is acting as a proxy or gateway and the next server didn't supply a timely response.
This is not a complete reference but lists only the most common status codes and their meanings.
No comments:
Post a Comment