Skip to content

Commit

Permalink
Revert "websites-integration: return 400 on handled cases"
Browse files Browse the repository at this point in the history
This reverts commit 147a9fb.
  • Loading branch information
cometkim committed Jun 7, 2024
1 parent 147a9fb commit 3f42a49
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: 400 });
return json({ message: err?.message || err.toString() }, { status: 500 });
}

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

0 comments on commit 3f42a49

Please sign in to comment.