# Errors and limits

Status codes, the error shape, rate limits and quotas.

Every error has the same shape:

```json
{
  "error": {
    "type": "quota_exceeded",
    "message": "Your plan's 10,000 requests for this period are used. Resets 2026-12-23T00:00:00.000Z.",
    "docs_url": "https://masterset.io/developers/docs/errors#quota_exceeded",
    "request_id": "req_8f3k2m9x41ab"
  }
}
```

| Status | `type` | What to do |
| --- | --- | --- |
| 400 | `invalid_parameter` | Fix the request; the message says which parameter |
| 401 | `missing_key`, `invalid_key` | Send a valid key in the `Authorization` header |
| 402 | `trial_expired`, `subscription_inactive` | Choose a plan or update billing; your keys keep working afterwards |
| 403 | `no_trial` | Create a key in the dashboard |
| 404 | `not_found` | No such set or card |
| 429 | `rate_limited` | Wait for `Retry-After` seconds |
| 429 | `quota_exceeded` | The period’s requests are used; see `X-Quota-Reset` |
| 503 | `busy` | Retry after a second, with backoff |

## Limits by plan

| Plan | Price | Requests per period | Per minute |
| --- | --- | --- | --- |
| Free trial | Free | 2,000 (500 a day) | 60 |
| Hobbyist | $9/month | 10,000 | 60 |
| Developer | $29/month | 100,000 | 120 |
| Business | $99/month | 1,000,000 | 600 |

Limits are hard: there are no overage charges. Each response reports where you stand:

```http
X-RateLimit-Limit: 60
X-RateLimit-Remaining: 59
X-RateLimit-Reset: 1795500000
X-Quota-Limit: 2000
X-Quota-Remaining: 1873
X-Quota-Reset: 2026-12-23T00:00:00.000Z
```

## What counts as a request

- Counted: every successful response, including `304 Not Modified` and redirects.
- Not counted: errors (`4xx`, `5xx`), and the keyless sample and `meta` endpoints.
- A whole checklist is one request, whatever its size.

## Reliability

We aim for 99.5% availability and answer most requests in well under a second. This is a goal, not a guarantee. A deploy can cause a few seconds of errors: retry with backoff.
