Skip to content

Commit

Permalink
add status code 400 for error response
Browse files Browse the repository at this point in the history
  • Loading branch information
yusukebe committed Oct 1, 2024
1 parent 09bf237 commit 19dafec
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ app.get('/', async (c) => {
});

if (error) {
return c.json(error);
return c.json(error, 400);
}

return c.json(data);
Expand Down

0 comments on commit 19dafec

Please sign in to comment.