# Errors

Nilinde uses standard HTTP status codes. Every error body has this shape:

```json
{
  "statusCode": 402,
  "code": "INSUFFICIENT_FUNDS",
  "message": "Insufficient wallet balance"
}
```

| Field | Present | Meaning |
| --- | --- | --- |
| `statusCode` | always | The HTTP status, repeated in the body |
| `message` | always | A human-readable explanation; may change, so don't parse it |
| `code` | when there is one | A stable, machine-readable code; branch on this |
| `retryable` | on `502` | `true` when retrying the same request later can succeed |
| `requestId` | on `502` | The failed verification's id, to look it up or quote to support |
| `issues` | on `400` | One entry per invalid field, each with a `path` and a `message` |

## Status codes

| Status | Code | Meaning | What to do |
| --- | --- | --- | --- |
| `200` | | Verification completed, including "not found" answers | Read `result` |
| `400` | | The input failed validation | Fix the fields listed in `issues` |
| `401` | | Missing, unknown or revoked API key | Check the `Authorization` header |
| `402` | `INSUFFICIENT_FUNDS` | The wallet can't cover this call (live keys only) | Top up in the dashboard |
| `403` | `API_NOT_IN_PLAN` | Your bundle doesn't include this API | Contact Nilinde to add it |
| `403` | `NO_ACTIVE_SUBSCRIPTION` | Your organization has no active bundle | Contact Nilinde |
| `404` | | No such verification, or it belongs to another environment | Check the id and key |
| `409` | | The `Idempotency-Key` was used for a different request, or is still running | Use a new key, or wait and retry |
| `429` | `QUOTA_EXCEEDED` | Your bundle's monthly call quota is used up | Wait for the next month or upgrade |
| `429` | | Rate limit exceeded | Back off and retry (see [Rate limits and quota](/limits)) |
| `502` | `PROVIDER_UNAVAILABLE`, `PROVIDER_ERROR`, `PROVIDER_BAD_RESPONSE`, … | The source failed or didn't answer. **You are not charged**; the charge is refunded automatically | Retry later if `retryable` is `true` |

**"Not found" is not an error.** If a source answers that it has no record, the verification completes with `200`, `status: "COMPLETED"` and `result.found: false`. It is charged, because the source was queried and answered.
