From 0eadbd36856988788cb9845ade477d4834a06ef3 Mon Sep 17 00:00:00 2001 From: tnfAngel <57068341+tnfAngel@users.noreply.github.com> Date: Sun, 3 Mar 2024 12:19:13 +0000 Subject: [PATCH] Update Server.ts better default status code for unhandled exceptions Signed-off-by: tnfAngel <57068341+tnfAngel@users.noreply.github.com> --- src/classes/Server.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/classes/Server.ts b/src/classes/Server.ts index 2b70f0c..5173b3a 100644 --- a/src/classes/Server.ts +++ b/src/classes/Server.ts @@ -124,7 +124,7 @@ export class Server { default: console.error(error); - return JSPError.send(set, 400, JSPError.message[ErrorCode.unknown]); + return JSPError.send(set, 500, JSPError.message[ErrorCode.unknown]); } }); }