diff options
author | Alan Pearce | 2024-04-15 23:28:49 +0200 |
---|---|---|
committer | Alan Pearce | 2024-04-15 23:28:49 +0200 |
commit | d7ac66da3ccffb266caed2ebce574a4ab5737e79 (patch) | |
tree | f9b568e3c7b9fab0cdb498ec14264ce6746eb72d /src/app.ts | |
parent | bcc39f9b443e23d034523ec72e035c73b7ab9a55 (diff) | |
download | website-d7ac66da3ccffb266caed2ebce574a4ab5737e79.tar.lz website-d7ac66da3ccffb266caed2ebce574a4ab5737e79.tar.zst website-d7ac66da3ccffb266caed2ebce574a4ab5737e79.zip |
send 404 status...
Diffstat (limited to 'src/app.ts')
-rw-r--r-- | src/app.ts | 1 |
1 files changed, 1 insertions, 0 deletions
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, { |