Why does a page appear while HTTP reports 404?
The server may supply an HTML document as the 404 response body. A branded error page does not need a successful status; the body and status serve different purposes.
Short answers to recurring points of confusion.
The server may supply an HTML document as the 404 response body. A branded error page does not need a successful status; the body and status serve different purposes.
MIME mapping depends on the server configuration and filename extension. Check the actual Content-Type response and ensure the files are served from the intended root.
No. HEAD avoids transferring the body. Use a real GET to verify that the content is present and that its resource links resolve.
No. Long caching benefits stable assets, but can delay the availability of corrections and cause stale information. Choose a lifetime based on the content lifecycle.
No. Protocol negotiation occurs before the page representation is delivered. Inspect TLS ALPN and the client/server connection rather than relying on visible page content.