Skip to content

Commit f8e818b

Browse files
authored
Merge pull request #4 from yusukebe/add-status-code-for-error
add status code `400` for error response
2 parents 09bf237 + 19dafec commit f8e818b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ app.get('/', async (c) => {
1414
});
1515

1616
if (error) {
17-
return c.json(error);
17+
return c.json(error, 400);
1818
}
1919

2020
return c.json(data);

0 commit comments

Comments
 (0)