Skip to content

Commit

Permalink
Merge pull request #4 from yusukebe/add-status-code-for-error
Browse files Browse the repository at this point in the history
add status code `400` for error response
  • Loading branch information
zenorocha authored Oct 2, 2024
2 parents 09bf237 + 19dafec commit f8e818b
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 f8e818b

Please sign in to comment.