Nevon / express-physical

Healthcheck middleware for Express 🌡

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

HTTP 500 on unhealthy system

cdelmas opened this issue · comments

It is possible to make the middleware return a HTTP 500 response when the system is unhealthy? That's the default behavior of many health checks libraries, and allows the monitoring systems to avoid parsing the response body.
It could be configurable (choose between 200 and 500).

I don't want to make this configurable, but it makes sense to return 500 if the healthchecks are failing.