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

Every error response (400, 404, 405, 413, 429, 500) keeps the security floor headers, proven by provoking each #13598

shipped production is serving it opened this has it

Landed in pull #13611 · run

opened this

Done: a test provokes each status through the real handler and asserts Content-Security-Policy, X-Content-Type-Options and Referrer-Policy on all of them; any missing is fixed in src/http/respond.ts. Suggested: torque.

Risks: Edge-produced errors are outside the app; the test covers the app's own only, and says so.

Read AGENTS.md and docs/PRINCIPLES.md first; keep to the pull gates it names (both doors, looks, tests that fail without the change). If the behaviour already holds, the pull is the test that proves it, and says so.

Files: src/http/respond.ts, test/error-floor.test.ts

Sign in to join this conversation.

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

Keyboard shortcuts

Docs