cPanel's Error Pages interface can customize the HTML returned for HTTP error status codes such as 404.
- Open cPanel → Advanced → Error Pages.
- Select the domain.
- Choose an error code.
- Enter the message or HTML.
- Save the custom page.
A custom error page changes what visitors see; it does not fix the underlying condition that caused the error. For example, a custom 404 page does not restore a missing file.