diff --git a/app/routes/api.chat.ts b/app/routes/api.chat.ts index b685ac853a..00aa3a47a6 100644 --- a/app/routes/api.chat.ts +++ b/app/routes/api.chat.ts @@ -51,7 +51,7 @@ async function chatAction({ context, request }: ActionFunctionArgs) { } catch (error) { console.log(error); - throw new Response(null, { + return new Response(null, { status: 500, statusText: 'Internal Server Error', });