From 87c0d32a96cc7accfbf14811de06b4161c5ffbe2 Mon Sep 17 00:00:00 2001 From: Vaibhav Pandey <91662034+vaibhavqrcg@users.noreply.github.com> Date: Mon, 8 Jul 2024 14:27:38 +0530 Subject: [PATCH] Send 500 for server errors. --- app.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app.js b/app.js index 500f01a..17dff54 100644 --- a/app.js +++ b/app.js @@ -64,7 +64,7 @@ const handler = async (event) => { }; } catch (err) { return createErrorResponse( - 422, + 500, err.message || "Error encountered while capturing screenshot.", ); }