---
title: "Ready"
method: GET
path: "/health/ready"
---

# Ready

`GET /health/ready`

## Request

- Base URL: `https://ai-belarus.by` (the document declares no server; this is the origin it was published from)
- URL: `https://ai-belarus.by/health/ready`
- Auth: none declared

Готовность СЛУЖБЫ, а не живость соединения.

⛔ ПРОЖИТО 10.09.2026 ЖИВЫМ ОПЫТОМ. Прежняя проверка делала `db_ping()` — то есть
спрашивала «отвечает ли база», — и на ПУСТОЙ базе отвечала 200 «ready». Тут же первый
запрос данных падал: `UndefinedTable: relation "entities" does not exist`. При
постепенной выкатке балансировщик направил бы поток на немигрированный узел, и тот
принял бы его с видом здорового. Проверка обязана спрашивать про ПРЕДМЕТ.

## Response `200`

Successful Response

- HealthReady: ⛔ Готовность СЛУЖБЫ. Прежде проверялось соединение с базой, и на ПУСТОЙ схеме ответ был «ready», а первый же запрос данных падал.
  - `status` string, required
  - `database` string, required
  - `config` string, required
  - `schema` string, required
  - `legal_layer` string, nullable

## Other responses

- `429`: Too Many Requests
- `500`: Internal Server Error
- `503`: Service Unavailable

---

[API](https://skmtc.dev/ai-belarus/apis/ai-belarus-api.md) · [All operations](https://skmtc.dev/ai-belarus/apis/ai-belarus-api/llms.txt) · [OpenAPI document](https://skmtc.dev/ai-belarus/apis/ai-belarus-api/revisions/0cebed10c5b0?raw)
