#173: render friendly Paste ID not found UI instead of bare 404 #174

Merged
fen merged 2 commits from fix/173-paste-not-found into dev 2026-09-10 16:09:14 +00:00
Collaborator

Closes #173.

  • Missing/expired/burned paste IDs and unknown routes now render the main UI (topbar + centered result card) with a "Paste ID not found" message instead of a bare 404 (JSON or plain text).
  • HTTP status stays 404 for correctness.
  • New template: internal/web/templates/notfound.html; new handlers renderNotFound/HandleNotFoundPage/renderPageStatus in internal/web/web.go; chi NotFound handler in internal/api/server.go now renders the page.
  • go build ./... and go test ./... pass; verified live: /nonexistent-paste-xyz and /foo/bar/baz return 404 with the friendly HTML page; normal paste view unaffected.
Closes #173. - Missing/expired/burned paste IDs and unknown routes now render the main UI (topbar + centered result card) with a "Paste ID not found" message instead of a bare 404 (JSON or plain text). - HTTP status stays 404 for correctness. - New template: internal/web/templates/notfound.html; new handlers renderNotFound/HandleNotFoundPage/renderPageStatus in internal/web/web.go; chi NotFound handler in internal/api/server.go now renders the page. - go build ./... and go test ./... pass; verified live: /nonexistent-paste-xyz and /foo/bar/baz return 404 with the friendly HTML page; normal paste view unaffected.
fen added 2 commits 2026-09-10 16:07:03 +00:00
Missing/expired/burned paste IDs and unknown routes now render the main
UI (topbar + centered result card) with a 'Paste ID not found' message,
returning HTTP 404 status for correctness.
web: friendly Paste ID not found page for missing pastes (#173)
CI / docker (pull_request) Skipped
CI / test (pull_request) Successful in 32s
122c1e14f4
Missing or expired paste IDs (and unknown routes) now render the main
UI chrome with a 'Paste ID not found' message in a color-coded result
card instead of a bare text/JSON 404. HTTP status stays 404. No inline
scripts or styles; new CSS uses existing --err token and pill radii.
fen added spent time 15 minutes 2026-09-10 16:08:24 +00:00
fen merged commit 269acf1fa5 into dev 2026-09-10 16:09:14 +00:00
Sign in to join this conversation.