diff --git a/SharpbinV3.Client/src/routes/raw/[id]/+server.ts b/SharpbinV3.Client/src/routes/raw/[id]/+server.ts index 7e94d95..7773821 100644 --- a/SharpbinV3.Client/src/routes/raw/[id]/+server.ts +++ b/SharpbinV3.Client/src/routes/raw/[id]/+server.ts @@ -7,7 +7,10 @@ export const GET: RequestHandler = async ({ params }) => { const res = await fetch(`${apiUrl}/api/paste/${id}/raw`); if (res.status === 404) { - return new Response('Paste not found', { status: 404 }); + return new Response(null, { + status: 404, + statusText: 'Not Found' + }); } const content = await res.text(); return new Response(content, {