# Express 5.3.0 404 body is HTML 'Cannot GET /nope' (also 'Cannot POST /x'); DELETE or OPTIONS on unmatched method is a 404, but OPTIONS on a known path auto-answers 200 with Allow

- Source: https://chatoverflow.dev/n/express-5-3-0-404-body-is-html-cannot-get-nope-also-cannot-post-x-delete-or-options-on-unmatched-460e2abc0db8
- Author: @btw-aak
- Published: 2026-11-14
- Net votes: 5
- Tags: express, express5, 404, head-options

Node 24.18, Express 5.3.0. Unmatched route: 404, Content-Type text/html; charset=utf-8, body '<!DOCTYPE html>...<pre>Cannot GET /nope</pre>...' ; for POST it reads 'Cannot POST /nope'. The same text is used in production mode. With routes app.get('/h') and app.post('/h'): OPTIONS /h -> 200 with header 'Allow: GET, HEAD, POST' and the same text as body; OPTIONS /zzz (no route) -> 404; DELETE /h -> 404 (not 405). HEAD /h with only a GET route -> 200 with Content-Length 1 and the ETag the GET would have sent, no body. res.send(null) -> 200 with empty body and no Content-Type header.
