Error pages inform visitors about problems when they attempt to access your site.

Each problem has its own status code.

The HTTP codes describe the status of a URL when a visitor attempts to access it. 

Most HTTP codes (often three-digit numbers) include error messages that describe the problems that visitors encounter.

The following list represents the five classes of HTTP codes, divided into categories, by the first digit:

1, 2, or 3 — A fully-functional request.

4 — A client-side error. The most common codes span 400 to 404.

5 — A server-side error. The most common codes span 500 to 510.

 

List of HTTP status codes:

  • 400 Bad Request — The user’s request contains incorrect syntax.
  • 401 Unauthorized — The requested file requires authentication (username
and password).
  • 403 Forbidden — The server will not allow the visitor to access the requested file. If a visitor receives this code in error, check the file’s permission settings. You can also confirm whether the system protects the file in cPanel’s Indexes interface (cPanel >> Home >> Advanced >> Indexes).
  • 404 Not Found — The server did not find a visitor’s requested file. This error commonly occurs when a visitor mistypes a URL.
  • 5xx Errors — These errors occur when a server cannot fulfill an apparently-valid request from a visitor. To resolve these issues, contact your system administrator. It is also important to consider that many times, a chain of servers handles an HTTP request. This means that the returned error may come from a different web server and not your own.
  • 500 Internal Server Error — The server encountered an unexpected condition. This multipurpose error displays when the server cannot gather any specific information about the problem. This error often occurs when the server cannot fulfill an application request because of a misconfigured application. To resolve this issue, contact our technical team.
  • 501 Not Implemented — An error that the server does not support the client’s chosen HTTP method. This error often occurs if the server is out of date and rarely occurs. To resolve this issue, contact your system administrator.
  • 502 Bad Gateway — This error usually occurs due to improperly configured proxy servers. However, the error also arises when there is poor IP communication between back-end computers, when the client’s Internet Service Provider (ISP) is overloaded, or when a firewall functions improperly. Clear the client’s cache as a first step to resolve this issue. This action results in the use of a different proxy to resolve the web server’s content.
  • 503 Service Unavailable — The server cannot handle requests because of a temporary overload or because the server is temporarily closed for maintenance. The error signifies that the server will only be unavailable temporarily. It is possible to receive other errors in place of the 503 error. To resolve this issue, contact our technical support team.
  • 504 Gateway Timeout — A server did not receive a timely response from another server. Slow communication between upstream servers causes this error. To resolve this issue, contact our technical support team.
  • 505 HTTP Version Not Supported — The server refuses to support the HTTP protocol that the client computer specifies. This error occurs if the client computer does not correctly specify the protocol (for example, if it specifies an invalid version number). This error should not occur if you have a current installation of cPanel & WHM.
  • 506 Variant Also Negotiates — The server is not properly configured. To resolve this issue,  contact our technical support team.
  • 507 Insufficient Storage — The server is out of free memory. This error usually occurs when a requested application cannot allocate the necessary system resources in order to run. To resolve this issue, contact our technical support team.
  • 509 Bandwidth Limit Exceeded — Your server reached the bandwidth limit that the system administrator imposed. The only solution for this issue is to wait until the limit resets in the following cycle. To resolve this issue, contact our technical support team.
  • 510 Not Extended — The web server does not support an extension that is attached to the HTTP request. To resolve this issue, contact our technical support team

 

The web server automatically provides basic error pages, but the cPanel Error Pages interface allows you to define custom error pages for any HTTP status code.

To customize an error page, perform the following steps:

If this account manages more than one domain, select the domain for which you wish to edit an error page from the Managing: menu.

Click the error status code for which you wish to edit its error page.

If you do not see the desired error status code in that list, click the Show All HTTP Error Status Codes tab. Then, click on the desired error status code.

Enter a message in the text box.

To display information on the error page about the visitor who accessed your site, click the appropriate buttons for the information that you wish to display.

Enter additional HTML code to further customize your error pages.

Click Save.

Hjalp dette svar dig? 0 Kunder som kunne bruge dette svar (0 Stem)