Skip to content

Whether the server is up

GET
/api/health
curl --request GET \
--url http://localhost:3000/api/health

200 { ok: true } when the server answers and reaches its database within a second, else 503 { ok: false }: for a load balancer’s readiness check, or a smoke test after a deploy. Never cached; it says nothing about what the server holds.

Up

The database didn’t answer within a second