Im want send header 404 Not found and show my page “error not found. try to see this…”.
But when im send header i see native-browser page “Oops! This link appears to be broken.”.
How i can show my page content with correct header?
Any idea?
Im want send header 404 Not found and show my page error not found.
Share
Some browsers think their error pages are smarter than the website’s. As far as I know, only Google Chrome and Internet explorer do so.
When they receive a response shorter or equal in length to 512 bytes, they decide the page is ‘not descriptive enough’, and show their own 404 error document. You may want to add a padding comment to your page to bypass this check; or even better, useful content to describe what happened to the user.