diff --git a/app/api/send/route.ts b/app/api/send/route.ts index 16952de..1b0812c 100644 --- a/app/api/send/route.ts +++ b/app/api/send/route.ts @@ -14,11 +14,11 @@ export async function POST() { }); if (error) { - return Response.json({ error }); + return Response.json({ error }, { status: 500 }); } return Response.json({ data }); } catch (error) { - return Response.json({ error }); + return Response.json({ error }, { status: 500 }); } }