if ( !empty($errors) ) { // If using fastcgi this is the 404 header // header("Status: 404 Not Found"); // otherwise this is the standard 404 header("HTTP/1.0 404 Not Found"); }