Skip to content
This site documents the main branch, which may hold changes not yet released. Latest release: v0.3.0 (changelog).

Liveness and readiness (database answers within 2 s)

GET
/healthz
curl --request GET \
--url http://localhost:3000/healthz

Ready.

Media typeapplication/json
object
status
required
string
Allowed values: ok unavailable
uptimeSeconds
required
integer
>= -9007199254740991 <= 9007199254740991
checks
required
object
database
required
string
Allowed values: ok error

Example

{
"status": "ok",
"checks": {
"database": "ok"
}
}
X-Request-Id
required

Id of the request (req_…), also the id of its request log row.

string

Id of the request (req_…), also the id of its request log row.

Error: internal_error

Media typeapplication/json
object
error
required
object
code
required
string
Allowed values: unauthorized forbidden validation_error not_found conflict idempotency_mismatch rate_limited payload_too_large chaos_injected wait_timeout internal_error
message
required
string
details
requestId
required
string

Example

{
"error": {
"code": "unauthorized"
}
}
X-Request-Id
required

Id of the request (req_…), also the id of its request log row.

string

Id of the request (req_…), also the id of its request log row.

The database does not answer.

Media typeapplication/json
object
status
required
string
Allowed values: ok unavailable
uptimeSeconds
required
integer
>= -9007199254740991 <= 9007199254740991
checks
required
object
database
required
string
Allowed values: ok error

Example

{
"status": "ok",
"checks": {
"database": "ok"
}
}
X-Request-Id
required

Id of the request (req_…), also the id of its request log row.

string

Id of the request (req_…), also the id of its request log row.