Custom error pages allow you to show a friendly message to your visitors when an issue occurs on your site. Each type of error has its HTTP status code (e.g., 404 for “Page Not Found”). While the web server provides default error pages, cPanel allows you to create custom error pages for any HTTP status code.
Log in to cPanel.
Under the Advanced section, click Error Pages.

If you manage multiple domains, select the domain you want to customize from the Managing dropdown menu.
Choose the HTTP status code for the error page you want to customize (e.g., 404).
If the status code is not listed, click Show All HTTP Error Status Codes, then select the code.

In the text box, enter the message you want visitors to see.
To display information about the visitor who triggered the error, use the available buttons for dynamic data.
You can also add HTML codes to further customize the look of your error page.

Click Save to apply your changes.