> ## 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.

# Errors

> Megaseo API response format for request validation errors.

If the request body does not match the schema, the API returns `422 Validation Error` with an `HTTPValidationError` object.

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

| Field | Type | Description |
| - | - | - |
| `detail` | array | List of validation errors |
| `detail[].loc` | array of string \| integer | Path to the invalid field |
| `detail[].msg` | string | Error message |
| `detail[].type` | string | Error type |
| `detail[].input` | any | Submitted value (optional) |
| `detail[].ctx` | object | Additional context (optional) |

## Common causes

* A required field is missing, for example `access_token`.
* A value is out of range: `limit` must be between 1 and 100, `task_id` must be greater than 0.
* A value is not in the enum, for example `status` or `control_type`.
* A string is too long: `name` up to 32 characters, `description` up to 1024.


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