BuycPanel Blog

BuycPanel Blog

Latest news and updates

12/22/2014 – Custom Error Pages with cPanel

Posted by Jamison on 22 12 2014.

Creating error pages is one of the features provided by cPanel, currently one of the most used tools out there for hosting a website.


Why do you need to create error pages?


While this is the last thing you want visitors to see, it’s always best to make the most out of a bad situation, in this case you can tell the visitor there and then what went wrong instead of having them scratching their heads wondering what happened.


How to create custom error pages


  1. Go to the Advanced section of the cPanel homescreen and click on “Error Pages”.


  1. Click the error page you want to customize then type the HTML you want to use in the error page.


If you are not familiar with HTML, but are familiar with any design program like Sitebuilder, just publish a page that you want to use. Then visit your website online and pull up that new page.


Click the “View” button on top of your browser, then go to “Source” or “Page Source”. A window should pop up. Copy everything from there and paste it where the HTML should go. Remove that extra page from your site builder program.


Client request errors and what they mean


401 – Unauthorized


This happens when access to the URL has been denied, usually because a password or username was incorrect. It’s not recommended to redirect a 401 error unless you have really good reason or trust the visitor experiencing the problem.


403 – Forbidden


The visitor made a legal request, but the server is refusing to respond to it. This is usually caused by a scripting or file permissions issue.


404 – Not Found


This indicates while the visitor was indeed able to communicate with the server, the server could not find what was requested, or it was programmed not to carry out the request and reveal the reason why. This error is often confused with the “server not found” or similar errors.


Other errors include:


400 – Bad Request

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 Long

414 – Request URI Too Long

415 – Unsupported Media Type


Server errors and what they mean


500 – Internal Server Error


This means that your web server encountered something that prevented it from carrying out the request by the visitor. While something has gone wrong, the server cannot specifically tell the visitor what did.


503 – Service Unavailable


This error usually occurs when your server is temporarily experiencing overload or is undergoing maintenance.


Other errors include:


501 – Not Implemented

502 – Bad Gateway

504 – Gateway Timeout

505 – HTTP Version Not Supported


How to revert back to the default error pages


If you want to use the default again, all you have to do is delete the error page from the public_html folder. These are labeled: