Http error codes

= What is the meaning of those http error 400, 401, 402, 403, 500, ... =
 * source: http://docs.cpanel.net/twiki/bin/view/AllDocumentation/CpanelDocs/HTTPCodes

HTTP Error Codes and Quick Fixes

 * HTTP codes describe the status of a URL when a visitor tries to access it, and include error messages that result when visitors encounter problems on a website.
 * The codes are three-digit numbers.
 * There are 5 classes of HTTP codes, divided into categories by the first digit.


 * A first digit of 1, 2, or 3 represents a fully functional request. More information about these codes can be found in this article.
 * A first digit of 4 represents a client-side error. The most common codes span 400 to 404.
 * A first digit of 5 represents a server-side error. Common codes span 500 to 510.

4xx Errors
o	400 Bad Request o	401 Unauthorized o	403 Forbidden o	404 Not Found

5xx Errors
o	500 Internal Server Error o	501 Not Implemented o	502 Bad Gateway o	503 Service Unavailable o	504 Gateway Timeout o	505 HTTP Version Not Supported o	506 Variant Also Negotiates o	507 Insufficient Storage o	509 Bandwidth Limit Exceeded o	510 Not Extended

ErrorDocument

 * 1)    ErrorDocument 400 /error/HTTP_BAD_REQUEST.html.var
 * 2)    ErrorDocument 401 /error/HTTP_UNAUTHORIZED.html.var
 * 3)    ErrorDocument 403 /error/HTTP_FORBIDDEN.html.var
 * 4)    ErrorDocument 404 /error/HTTP_NOT_FOUND.html.var
 * 5)    ErrorDocument 405 /error/HTTP_METHOD_NOT_ALLOWED.html.var
 * 6)    ErrorDocument 408 /error/HTTP_REQUEST_TIME_OUT.html.var
 * 7)    ErrorDocument 410 /error/HTTP_GONE.html.var
 * 8)    ErrorDocument 411 /error/HTTP_LENGTH_REQUIRED.html.var
 * 9)    ErrorDocument 412 /error/HTTP_PRECONDITION_FAILED.html.var
 * 10)    ErrorDocument 413 /error/HTTP_REQUEST_ENTITY_TOO_LARGE.html.var
 * 11)    ErrorDocument 414 /error/HTTP_REQUEST_URI_TOO_LARGE.html.var
 * 12)    ErrorDocument 415 /error/HTTP_UNSUPPORTED_MEDIA_TYPE.html.var


 * 1)    ErrorDocument 500 /error/HTTP_INTERNAL_SERVER_ERROR.html.var
 * 2)    ErrorDocument 501 /error/HTTP_NOT_IMPLEMENTED.html.var
 * 3)    ErrorDocument 502 /error/HTTP_BAD_GATEWAY.html.var
 * 4)    ErrorDocument 503 /error/HTTP_SERVICE_UNAVAILABLE.html.var
 * 5)    ErrorDocument 506 /error/HTTP_VARIANT_ALSO_VARIES.html.var

ErrorDocument 400 "400 - BAD_REQUEST" ErrorDocument 401 "401 - UNAUTHORIZED" ErrorDocument 402 "402 - example.com subscription_info" ErrorDocument 403 "403 - FORBIDDEN" ErrorDocument 404 "404 - NOT_FOUND" ErrorDocument 405 "405 - METHOD_NOT_ALLOWED" ErrorDocument 408 "408 - REQUEST_TIME_OUT" ErrorDocument 410 "410 - GONE" ErrorDocument 411 "411 - LENGTH_REQUIRED" ErrorDocument 412 "412 - PRECONDITION_FAILED" ErrorDocument 413 "413 - REQUEST_ENTITY_TOO_LARGE" ErrorDocument 414 "414 - REQUEST_URI_TOO_LARGE" ErrorDocument 415 "415 - UNSUPPORTED_MEDIA_TYPE" ErrorDocument 500 "500 - INTERNAL_SERVER_ERROR" ErrorDocument 501 "501 - NOT_IMPLEMENTED" ErrorDocument 502 "502 - BAD_GATEWAY" ErrorDocument 503 "503 - SERVICE_UNAVAILABLE" ErrorDocument 506 "506 - VARIANT_ALSO_VARIES"

4xx Errors
Although these errors are technically the result of a problem with the client's (ie, the browser's) request, oftentimes they point to a problem on a website. For example, if you have a faulty link on your home page, and visitors click it, they may see a 404 error. For this reason, it's important to monitor these errors and investigate their causes. Since these are also among the highest-profile codes (visitors see them the most), you may want to customize yourError Pages for them in cPanel.

400 Bad Request
The user's request contains incorrect syntax.

401 Unauthorized
The requested file requires authentication (a username  and password).

403 Forbidden
The server will not allow the visitor to access the requested file. If a visitor sees this code in error, check the file's permission settings. You can also check to see whether the file has been protected via cPanel's Index Manager.

404 Not Found
The server could not find the file that the visitor requested. This error commonly occurs when a URL is mistyped.

5xx Errors
These errors are caused by the server being unable to fulfill an apparently valid request from a visitor. Often, you will need the help of a server administrator in order to investigate these errors. It is also important to consider that many times, a chain of servers is handling an HTTP request, so that it may not be the actual web server that is returning the error.

500 Internal Server Error
This error signifies that the server has encountered an unexpected condition. It is a “catch-all” error that will be displayed when no specific information can be gathered by the server regarding the condition. This error often occurs when an application request cannot be fulfilled due to the application being misconfigured.

501 Not Implemented
This signifies that the HTTP method sent by the client is not supported by the server. It is most often caused by the server being out of date. This error is very rare and generally requires that the web server be updated.

502 Bad Gateway
This error is usually due to improperly configured proxy servers. However, the problem may also arise when there is poor IP communication amongst back-end computers, when the client’s ISP is overloaded, or when a firewall is functioning improperly. The first step in resolving the issue is to clear the client’s cache. This action should result in the a different proxy being used to resolve the web server’s content.

503 Service Unavailable
This error occurs when the server is unable to handle requests due to a temporary overload or due to the server being temporarily closed for maintenance. The error signifies that the server will only temporarily be down. It is possible to receive other errors in place of 503. Contact the server administrator if this problem persists.

504 Gateway Timeout
This occurs when a server somewhere along the chain does not receive a timely response from a server further up the chain. The problem is caused entirely by slow communication between upstream computers. To resolve this issue, contact the system administrator.

505 HTTP Version Not Supported
This error occurs when the server refuses to support the HTTP protocol that has been specified by the client computer. It can be caused by the protocol not being specified properly by the client computer; for example, if an invalid version number has been specified. This error will not be an issue with a current installation of cPanel.

506 Variant Also Negotiates
This error indicates that the server is not properly configured. Please contact the system administrator to resolve this issue.

507 Insufficient Storage
This code indicates that the server is out of free memory. It is most likely to occur when an application being requested cannot allocate the necessary system resources for it to run. To resolve the issue, the server’s hard disk may need to be cleaned of any unnecessary documents to free up more hard disk space, its memory may need to be expanded, or it may simply need to be restarted. Please contact the system administrator for more information regarding this error message.

509 Bandwidth Limit Exceeded
This error occurs when the bandwidth limit imposed by the system administrator has been reached. The only fix for this issue is to wait until the limit is reset in the following cycle. Consult the system administrator for information about acquiring more bandwidth.

510 Not Extended
This error occurs when an extension attached to the HTTP request is not supported by the web server. To resolve the issue, you may need to update the server. Please consult the system administrator for more information.