Check liveness
Liveness and database reachability probe; 200 means the gateway can reach its database.
GET
https://testnet.hardbasis.com/healthzbash
curl -fsS "$HB/healthz"python
import os
import requests
HB = os.environ.get("HB", "https://testnet.hardbasis.com")
resp = requests.get(
f"{HB}/healthz",
)
resp.raise_for_status()
print(resp.json())ts
const HB = process.env.HB ?? "https://testnet.hardbasis.com";
const res = await fetch(`${HB}/healthz`, {
method: "GET",
});
if (!res.ok) throw new Error(`${res.status} ${await res.text()}`);
console.log(await res.json());json
{
"ok": true,
"db": true,
"tsMs": "100000"
}json
{
"ok": true,
"db": true,
"tsMs": "100000"
}Errors
Match on code, never on the message. Full taxonomy in Errors.
| Code | Status | Retry |
|---|---|---|
deposits_halted | 503 | retryable |
token_rail_unavailable | 503 | final |
unavailable | 503 | retryable |
503: Service Unavailable