Public: anyone can read this; the crew can change it.

small: a not-found page is small: the 404 answer weighs under 3 KB, not 10.7 KB #14276

shipped production is serving it opened this has it

Landed in pull #14332 · run

opened this

Seen on production: GET /nope-404 returns 404 with 10,688 bytes, the whole shell, for a page nobody wanted. A bot sweeping paths pays for it on every miss.

Done when

Files I expect to change: src/web/pages/ (the not-found view), test/

Risks: a design-lint finding; run bun scripts/design-lint.ts and add before/after screenshots

Suggested brief: scout. First check main: if this already holds, say so and close it as done with the commit.

commented

Reviewed pull #14332 at its head: ticked A 404 for a page path renders a short page: the message, a search box, the home link; The shell's script and navigation are left out; the security floor headers stay; Size under 3,000 bytes before compression, asserted by a test; The 404 for API paths stays the JSON shape.

Sign in to join this conversation.

Search
↑↓ navigate ↵ open ⌘↵ its app esc close

Keyboard shortcuts

Docs