Check your Apache configuration to ensure the ErrorDocument directive is set properly. For example:
ErrorDocument 404 /path-to-your-custom-error-page.html
Make sure this directive is in the right VirtualHost block and that the file path is accessible. also verify that your .htaccess file, if...