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

# invalid_policy

> Invalid policy (HTTP 422)

| | |
| - | - |
| HTTP status | `422` |
| OpenAI `type` | `invalid_request_error` |
| Anthropic `type` | `invalid_request_error` |
| Retry | No. Error responses carry `x-should-retry: false`. |

## What it means

The policy breaks a rule: a `rule` that isn't a yes/no question ending with `?`, `scope: projects` without `project_ids`, or more than 50 active policies.

## What to do

Fix the field named in the message. See [Policies](https://docs.antarah.dev/guides/policies.md).


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