Custom error pages
You can customize the error pages displayed to visitors when HTTP errors occur (such as 404 Not Found or 500 Internal Server Error).
Using cPanel
Section titled “Using cPanel”- Log in to cPanel and search for Error Pages (listed under Advanced).
- Select the domain you want to configure.
- Click the error code you want to customize.
- Edit the HTML/SHTML content and save.
Using .htaccess
Section titled “Using .htaccess”Add ErrorDocument directives to your site’s .htaccess file:
ErrorDocument 403 /403.htmlErrorDocument 404 /404.htmlErrorDocument 500 /500.htmlThis directs visitors who encounter those errors to the specified HTML files in your document root.
Common HTTP error codes
Section titled “Common HTTP error codes”| Code | Description |
|---|---|
| 400 | Bad Request |
| 401 | Authorization Required |
| 403 | Forbidden |
| 404 | Not Found |
| 405 | Method Not Allowed |
| 406 | Not Acceptable (encoding) |
| 407 | Proxy Authentication Required |
| 408 | Request Timed Out |
| 409 | Conflicting Request |
| 410 | Gone |
| 411 | Content Length Required |
| 412 | Precondition Failed |
| 413 | Request Entity Too Large |
| 414 | Request URI Too Long |
| 415 | Unsupported Media Type |
| 500 | Internal Server Error |
| 501 | Not Implemented |
| 502 | Bad Gateway |
| 503 | Service Unavailable |
| 504 | Gateway Timeout |
| 505 | HTTP Version Not Supported |