3 ms·
If I am directly getting the 404 page, and I receive it, then shouldn't the status code be 200? curl -I http://leftlogic.com/info/articles/404 HTTP/1.1 404
by antidoh 14y ago
If I am directly getting the 404 page, and I receive it, then shouldn't the status code be 200?
curl -I http://leftlogic.com/info/articles/404
HTTP/1.1 404 Page not found
Date: Sun, 14 Oct 2012 12:45:07 GMT
Server: Apache/1.3.37 (Unix) DAV/1.0.3 mod_gzip/1.3.26.1a PHP/5.4.0
X-Powered-By: PHP/5.4.0
Connection: close
Content-Type: text/html
But it was found.
- pestaa 14y agoThere is no resource on that endpoint so nothing was really found. It is merely arbitrary that applications redirect you to a preconfigured URL to show that error.
- TazeTSchnitzel 14y agoYes. Returning content for error pages is normal. The status code indicates this isn't what was expected, but doesn't say you can't produce some other content along with it.
- aba_sababa 14y agoUnless that URL is deceiving, and that's not actually the URL for the 404 page - just a URL that doesn't exist that looks like it could be the URL for the 404 page.