I have a website. It has a error page with the name 404.php. I set the headers in the 404.php using:
header("HTTP/2 404 Not Found");
When I open console in Google Chrome in the error page now it says:
Failed to load resource: the server responded with a status of 404 ()
Before, it displayed the normal:
Failed to load resource: the server responded with a status of 404 (Not Found)
The word "Not Found" is not displaying in the console tab. So because of this users would think that it is a fake 404 response even if it is real.
Please help me with this.
It works, but it doesn't display "Not Found" in the console and in the network http headers.