An error page informs a visitor when there is a problem accessing your site. Each type of problem has its own code. For example, a visitor who enters a nonexistent URL will see a 404 error, while an unauthorized user trying to access a restricted area of your site will see a 401 error.
Basic error pages are automatically provided by the web server (Apache). However, if you prefer, you can create a custom error page for any valid HTTP status code beginning in 4 or 5.
When an incorrect web page or file is requested, the web server will reply with an error message. There are a number of possible error messages that can be returned, each of with has an error code associated with it.
These errors include:
- 400 = Bad Request. Usually a mangled communication between the browser and server.
- 401 = Authorization Required. If the user cancels a password request, this error is generated.
- 403 = Forbidden. If indexing is turned off, and/or the server can not show/access the directory.
- 404 = Page not found. The requested URL goes to a non-existant file or directory.
- 500 = Internal Server Error. Mostly likely a script error.
Simply click on the Error Pages tool in cPanel. Using this tool, you can edit common error codes as well as any error code.