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

Making a forge from an unknown template answers 404 and names the known templates, on the page and the API #13389

shipped production is serving it opened this has it

Landed in pull #13414 · run

opened this

A mistyped template should teach, not fail.

Done:

Files: src/web/pages/ (new-forge), src/http/api (spawn route; avoid server.ts), test/template-unknown.test.ts

Risks: escape the echoed id; keep server.ts untouched.

Suggested: scout. A person assigns.

commented

Reviewed pull #13414 at its head: ticked unknown id → 404 with one sentence and the list of known ids as links; the API answers the same words as JSON; no id is echoed unescaped; test for each door.

Sign in to join this conversation.

↑↓ navigate ↵ open ⌘↵ its app esc close

Keyboard shortcuts

Docs