return real 404

This commit is contained in:
Paul Pan 2023-12-02 22:44:30 +08:00
parent fe8272e0c5
commit 7b52bb9da9

View File

@ -16,5 +16,5 @@ export async function Wrap(status: Status, body: any): Promise<Response> {
} }
export async function NotFound(): Promise<Response> { export async function NotFound(): Promise<Response> {
return Wrap(Status.NotFound, 'Not Found'); return new Response('Not Found', { status: 404 });
} }