> Docs index: https://movekit.com/llms.txt. HTML version: https://movekit.com/docs/errors

# Errors

Every error has a code, a message and what to do next.

## The shape

```json
{
  "error": {
    "code": "asset_not_licensed",
    "message": "Your pack license does not include asset ex12-video; no download link was issued.",
    "requestId": "req_...",
    "retryable": false,
    "nextAction": "Use an owned exercise, or buy this one."
  }
}
```

## When to retry

On 429 `rate_limit_exceeded` and on 503, wait for `Retry-After` plus a little jitter, then retry. Any other 429 is a download limit, so stop and read `nextAction`, as you would for anything else.

## Common codes

| Status | Code | What to do |
| --- | --- | --- |
| 401 | `invalid_api_key` | Check `MOVEKIT_API_KEY`, or create a new key on your purchases page. To use the sample, send no key at all. |
| 401 | `authentication_required` | This route describes an account, so it needs a key. |
| 403 | `purchase_required` | This account has no completed order yet. |
| 403 | `asset_not_licensed` | You don't own this exercise, or it is not in the sample. `error.purchase` says where to buy it. |
| 404 | `not_found` | Check the id or path. |
| 429 | `rate_limit_exceeded` | Wait for `Retry-After`. |
| 503 | `asset_not_available` | The file isn't ready yet. Retry later, or use your purchases page. |
| 410 | `delivery_expired` | The link expired. Ask for a new one. |
| 429 | `delivery_limit_exceeded` | This link is used up. Ask for a new one. |
| 429 | `sync_limit_exceeded` | This version of the file reached its download limit for the month. Use the copy you have until downloads start again at 00:00 UTC on the 1st of each month, or contact support. |
| 429 | `daily_request_limit` | This account reached its media requests for today. Delivery resumes at 00:00 UTC; `Retry-After` says when. |
| 429 | `sample_busy` | The keyless sample is used up for today. Send your API key, or try again after 00:00 UTC. |
| 429 | `link_limit_exceeded` | One file had its 200 download links for today; `error.assetId` names it. Ask for the other files without it, and for that one after 00:00 UTC. |

The [OpenAPI document](https://api.movekit.com/v1/openapi.json) lists every code for every endpoint.
