feat(server): throwing Deno.errors.NotFound triggers 404 (#1984)

This commit is contained in:
Reed von Redwitz
2023-10-30 18:00:57 +01:00
committed by GitHub
parent 781247b180
commit f39e0d4218
8 changed files with 296 additions and 147 deletions
+7
View File
@@ -0,0 +1,7 @@
import { Handlers } from "$fresh/server.ts";
export const handler: Handlers = {
GET(_req, _ctx) {
throw new Deno.errors.NotFound();
},
};