> ## Documentation Index
> Fetch the complete documentation index at: https://docs.megaseo.net/llms.txt
> Use this file to discover all available pages before exploring further.

# Ошибки

> Формат ответа Megaseo API при ошибке валидации запроса.

Если тело запроса не соответствует схеме, API возвращает статус `422 Validation Error` с объектом `HTTPValidationError`.

```json 422 Validation Error theme={null}
{
  "detail": [
    {
      "loc": ["body", "task_id"],
      "msg": "string",
      "type": "string"
    }
  ]
}
```

| Поле | Тип | Описание |
| - | - | - |
| `detail` | array | Список ошибок валидации |
| `detail[].loc` | array of string \| integer | Путь к полю с ошибкой |
| `detail[].msg` | string | Текст ошибки |
| `detail[].type` | string | Тип ошибки |
| `detail[].input` | any | Переданное значение (необязательно) |
| `detail[].ctx` | object | Дополнительный контекст (необязательно) |

## Частые причины

* Не передано обязательное поле, например `access_token`.
* Значение вне допустимого диапазона: `limit` должен быть от 1 до 100, `task_id` больше 0.
* Значение не входит в перечисление, например `status` или `control_type`.
* Строка длиннее допустимого: `name` до 32 символов, `description` до 1024.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.