From 19dafecff4482ca539807e9e118642f53271dc2a Mon Sep 17 00:00:00 2001 From: Yusuke Wada Date: Wed, 2 Oct 2024 07:54:29 +0900 Subject: [PATCH] add status code `400` for error response --- src/index.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/index.tsx b/src/index.tsx index 09bcffd..7df500b 100644 --- a/src/index.tsx +++ b/src/index.tsx @@ -14,7 +14,7 @@ app.get('/', async (c) => { }); if (error) { - return c.json(error); + return c.json(error, 400); } return c.json(data);