Skip to content

Commit

Permalink
Reapply "websites-integration: return 400 on handled cases"
Browse files Browse the repository at this point in the history
This reverts commit 3f42a49.
  • Loading branch information
cometkim committed Jun 7, 2024
1 parent f245ae0 commit f5e8545
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ export const onRequestPost: PagesFunction<Env, 'id'> = async (context) => {
console.error(err);

// @ts-ignore
return json({ message: err?.message || err.toString() }, { status: 500 });
return json({ message: err?.message || err.toString() }, { status: 400 });
}

return json(null, { status: 204 });
Expand Down

0 comments on commit f5e8545

Please sign in to comment.