Custom error pages allow you to control what visitors see when an error occurs on your website.
Instead of showing a generic server message, you can display a custom page with your own text or design.
Error pages are handled at the server level.
What Error Pages Are Used For #
Custom error pages are commonly used to:
- Show a friendly message when a page is not found
- Explain temporary website issues
- Provide navigation back to the homepage
- Reduce confusion for visitors
They improve user experience when something goes wrong.
Common Error Codes Explained #
Some common HTTP error codes include:
- 400 Bad Request
The request could not be processed - 401 Unauthorized
Access requires authentication - 403 Forbidden
Access to the page is denied - 404 Not Found
The requested page does not exist - 500 Internal Server Error
The server encountered an error
Each error code can have its own custom page.
Where to Find Error Pages in cPanel #
- Log in to cPanel
- Go to the Advanced section
- Click Error Pages
You will see a list of error codes you can customize.
Creating a Custom Error Page #
To create or edit an error page:
- Select the error code
- Choose the domain
- Edit the content
- Save the changes
The content can include text and basic HTML.
Using HTML in Error Pages #
You may use:
- Plain text
- Basic HTML formatting
- Simple links
Avoid complex scripts or external dependencies.
Error pages should load quickly and reliably.
When Custom Error Pages Are Shown #
Custom error pages are shown when:
- A page does not exist
- Access is denied
- The server encounters an error
They are not shown for application-level errors inside a CMS.
What Custom Error Pages Do Not Do #
Custom error pages do not:
- Fix underlying website problems
- Replace debugging tools
- Prevent errors from occurring
They only change what the visitor sees.
Common Mistakes #
- Creating error pages that rely on broken resources
- Adding complex scripts
- Using incorrect HTML
- Assuming error pages solve server issues
Simple and clear pages work best.
Responsibility Notice #
You are responsible for:
- Correct content in error pages
- Avoiding misleading messages
- Keeping error pages functional
ProRedLine does not review custom error page content.
Still need help after reading this article?
