Skip to main content

Health

A lightweight health check for the evaluation service. Use it for load-balancer probes, smoke tests, and uptime monitoring.

GET /health

Request

No authentication is required. There is no body.

curl https://api.redpennon.dev/health

Response

{
"status": "ok",
"db": true
}
FieldTypeDescription
statusstring"ok" when the service can reach its database, "error" otherwise
dbbooleantrue when a database connection was established successfully

Status codes

StatusMeaning
200Healthy — process up, database reachable
503Unhealthy — the database connection failed
Use this for liveness, not for cache priming

The endpoint runs a real database connection check, so keep probe frequency reasonable. Once per few seconds per probe is plenty.