# Ответы

### Заголовок Content-Type

Все ответы возвращаются в формате JSON. Мы указываем это, отправляя заголовок `Content-Type`.

### Коды статуса

Ниже приведена таблица с описаниями различных кодов статуса, которые мы в настоящее время поддерживаем для различных ресурсов.

| Код ответа | Описание                  |
| ---------- | ------------------------- |
| 200        | OK                        |
| 201        | Ресурс создан             |
| 202        | Принято                   |
| 400        | Плохой запрос             |
| 401        | Неавторизовано            |
| 404        | Ресурс не найден          |
| 406        | Неприемлемо               |
| 422        | Некорректная сущность     |
| 429        | Слишком много запросов    |
| 500        | Внутренняя ошибка сервера |

### Постраничная навигация

При запросе с помощью запроса пагинации, в ответе включены метаданные, позволяющие легко переходить к предыдущей, текущей, первой и последней странице набора данных.

```json
{
    "data": [
        // Response data 
    ],
    "meta": {
        "total_pages": 100,
        "total_rows": 2000,
        "order": "DESC",
        "order_by": "resource_field",
        "limit": 20,
        "offset": 0,
        "next_key": ""
    }
}
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://support.iafcertsearch.org/api-developer-guide/api-ru/api-integration/responses.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
