From c0f84f47ca7f3ecc7085b696fc9fccb021d916cf Mon Sep 17 00:00:00 2001 From: Jean-Charles Sisk Date: Mon, 12 May 2025 15:19:23 -0400 Subject: [PATCH] feat: change healthcheck http status to `200` --- src/express-app/internal-server.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/express-app/internal-server.ts b/src/express-app/internal-server.ts index 645ea06..0461840 100644 --- a/src/express-app/internal-server.ts +++ b/src/express-app/internal-server.ts @@ -17,12 +17,12 @@ export async function startInternalApp< if (mainApp.locals.service?.healthy) { try { const ok = await mainApp.locals.service.healthy(mainApp); - res.sendStatus(ok ? 204 : 500); + res.sendStatus(ok ? 200 : 500); } catch (error) { mainApp.locals.logger.error(error, 'Health check failed'); } } else { - res.sendStatus(204); + res.sendStatus(200); } });