# validation_failed

> The validation_failed Problem Details code: The request does not match the operation’s schema or rules.

Source: https://docs.nexafone.so/v1/errors/validation_failed/

| | |
| --- | --- |
| HTTP status | `422` |
| Area | General |
| Problem `type` | `https://docs.nexafone.so/errors/validation_failed` |

The request does not match the operation’s schema or rules. `errors` lists each problem with its `location` (such as `body.name`) and a message. Fix the request; retrying it unchanged fails again.

## Handling it

The request is well-formed but its values are not accepted; fix them before retrying.

## Example

```json
{
  "type": "https://docs.nexafone.so/errors/validation_failed",
  "title": "Unprocessable Entity",
  "status": 422,
  "code": "validation_failed",
  "detail": "A human-readable explanation of this occurrence.",
  "requestId": "01J9Z8Q4TQ3W6M5V2X7Y8Z9A0B"
}
```

Match on `code`, never on `detail`: the wording may change. See [Problem Details](/v1/errors/).
