Skip to content

Commit c0f84f4

Browse files
committed
feat: change healthcheck http status to 200
1 parent 4cc210a commit c0f84f4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/express-app/internal-server.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,12 @@ export async function startInternalApp<
1717
if (mainApp.locals.service?.healthy) {
1818
try {
1919
const ok = await mainApp.locals.service.healthy(mainApp);
20-
res.sendStatus(ok ? 204 : 500);
20+
res.sendStatus(ok ? 200 : 500);
2121
} catch (error) {
2222
mainApp.locals.logger.error(error, 'Health check failed');
2323
}
2424
} else {
25-
res.sendStatus(204);
25+
res.sendStatus(200);
2626
}
2727
});
2828

0 commit comments

Comments
 (0)