/healthz endpoint that reports whether Curator can reach its database, as JSON. It is designed
for use by container orchestrators, load-balancer health probes, and uptime monitors that need
to know whether Curator is operational — not just whether the web server is up.
Endpoint
127.0.0.0/8(loopback)::1(IPv6 loopback)10.0.0.0/8(Class A private)172.16.0.0/12(Class B private)192.168.0.0/16(Class C private)
403 Forbidden with the body {"error":"Forbidden"}.
This restriction is intended to keep the detailed system information /healthz exposes from being publicly
accessible.
Response
A successful health check returns HTTP200 and a JSON body containing the result of the check:
503 Service Unavailable with the same JSON shape, with the
database value replaced by "error".
Checks Performed
Behavior When the Database Is Unreachable
/healthz is designed to return a JSON response even when the database is unreachable, so an orchestrator can
distinguish “database down” from “web server down”. When the database connection fails, the database check
reports error and the endpoint returns HTTP 503 rather than the framework’s standard error page.