> ## Documentation Index
> Fetch the complete documentation index at: https://cs2-data-api.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Errors

> RFC 9457 problem+json, status codes and request ids.

Errors are `application/problem+json` ([RFC 9457](https://www.rfc-editor.org/rfc/rfc9457)):

```json theme={null}
{
  "type": "about:blank",
  "title": "Unknown parameter",
  "status": 400,
  "detail": "not accepted here: rnd",
  "request_id": "3f9c0a1b2d4e5f60"
}
```

Every response, success or error, has an `X-Request-Id` header with the same id. Include it when you report a problem.

## Unknown parameters are errors

A query parameter the endpoint does not accept returns `400 Unknown parameter` instead of being ignored, so a typo
(`rnd=5`) cannot silently return a whole game. Values that fail validation (wrong type, out of range, bad pattern)
return `400 Bad parameters` with the offending parameter in `detail`.

## Status codes

| Status | `title` | When |
| - | - | - |
| 400 | `Unknown parameter`, `Bad parameters`, `Bad cursor`, `Bad format`, `Bad game id`, `Bad player id`, `Range required`, `Unknown field` | The request is malformed. `/states` needs `round` or both `tick_from` and `tick_to`; `fields` must be state column names |
| 401 | `Unauthorized` | No key, or the key is invalid, revoked or past its rotation grace period. Has `WWW-Authenticate: Bearer` |
| 403 | `Bad link`, `Link expired` | A file download link is invalid or older than 15 minutes. Request new links from `/v1/games/{game}/files` |
| 404 | `Not found` | No such match, game, player, team, tournament, round or path. `/states` also returns 404 when the game has no player state |
| 413 | `Range too large` | `/states` tick range not positive or longer than 240 s (15,360 ticks) |
| 429 | `Too many requests`, `Daily quota used` | Per-minute rate or daily unit budget exceeded. Wait `Retry-After` seconds. See [Rate limits](https://cs2-data-api.mintlify.site/concepts/rate-limits.md) |
| 500 | `Internal error` | Unexpected server error, logged with the request id |
| 503 | `Data not loaded` | The data store is unavailable. `GET /v1/health` also returns 503 then. Retry later |
| 504 | `Query timeout` | The query ran longer than 10 s. Narrow the filters (for example add `round`) |

## Retrying

Retry `429` after `Retry-After`, and `503` / `504` / `500` with backoff. Do not retry other `4xx` without changing the
request.


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