From 38c8af1c5713defe06077842bacbf69ef47eff00 Mon Sep 17 00:00:00 2001 From: whoswhip Date: Sun, 8 Mar 2026 14:58:56 -0400 Subject: [PATCH] fix(routes): /raw/{pasteId} no longer returns a body on error --- SharpbinV3.Client/src/routes/raw/[id]/+server.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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, {