From 147a9fb95090ea1a8a5c54dcc5211b66c710602b Mon Sep 17 00:00:00 2001 From: Hyeseong Kim Date: Fri, 7 Jun 2024 19:29:58 +0900 Subject: [PATCH] websites-integration: return 400 on handled cases --- .../websites-integration/functions/deployments/[id]/callback.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/_workers/websites-integration/functions/deployments/[id]/callback.ts b/_workers/websites-integration/functions/deployments/[id]/callback.ts index fa91a729f..16211138d 100644 --- a/_workers/websites-integration/functions/deployments/[id]/callback.ts +++ b/_workers/websites-integration/functions/deployments/[id]/callback.ts @@ -26,7 +26,7 @@ export const onRequestPost: PagesFunction = 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 });