How do I create a custom error page?

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.

  • 0 Users Found This Useful
Was this answer helpful?

Related Articles

Is it ok to use uppercase letters in an email address?

While most receiving email providers are fine with uppercase characters, some may not be. The...

How do I use the File Manager?

Our File Manager offers an easy interface to manage your website files and folders. A web hosting...

How do I view or change my FTP or cPanel password?

The username and password for your cPanel login and FTP login are the same. You can view your...

How much disk space is my site using?

This interface displays information about how you use your account's disk space, and all of your...

How much disk space is my site using?

This interface displays information about how you use your account's disk space, and all of your...