I have error.php that gets called by ErrorDocument entries in the .htaccess file. Error.php uses $_SERVER['REDIRECT_STATUS'] to figure out which error it's being called for and displays a custom message for each. I want to manually redirect the user from another page to error.php with the 404 error code in the HTTP header so error.php displays the message for that error. How can I do this in PHP?