From d7ac66da3ccffb266caed2ebce574a4ab5737e79 Mon Sep 17 00:00:00 2001 From: Alan Pearce Date: Mon, 15 Apr 2024 23:28:49 +0200 Subject: send 404 status... --- src/app.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/app.ts b/src/app.ts index c47e5e6..53433a9 100644 --- a/src/app.ts +++ b/src/app.ts @@ -233,6 +233,7 @@ export const server = { headers: { location: newpath }, }); } + status = 404; const notfound = files.get("/404.html"); if (notfound) { return serveFile(notfound, status, { -- cgit 1.4.1