# Errors

Failed requests with an API key return `application/problem+json` as defined in
[RFC 9457](https://www.rfc-editor.org/rfc/rfc9457).

```json
{
  "type": "https://api.fanovate.io/problems/not-found",
  "title": "Not found",
  "status": 404,
  "detail": "The creator does not exist.",
  "instance": "/dashboard/api/v1/creators/abc",
  "code": "not_found"
}
```

| Field | Meaning |
| --- | --- |
| `type` | URI that identifies the problem type. |
| `title` | Short, human-readable summary. |
| `status` | HTTP status code. |
| `detail` | Explanation of this occurrence. |
| `instance` | The request path. |
| `code` | Stable machine-readable code. Branch on this, not on `detail`. |

Responses never contain stack traces or internal data.

## Status codes

| Status | Meaning |
| --- | --- |
| `400` | Invalid body, parameter or header, or both `Authorization` and `X-API-Key` were sent. |
| `401` | Missing, invalid, expired or revoked key. |
| `403` | Not allowed. For example the operation is not available with a key (`not_available_with_api_key`). |
| `404` | The resource does not exist or is not yours. |
| `409` | Conflict with the current state, including `action_requires_desktop`. |
| `429` | Rate limit exceeded. See [Rate limits](/rate-limits). |
| `502` | The upstream platform returned an error. |
| `503` | The service or the platform is temporarily unavailable, including `platform_unavailable`. |

## Platform actions

The API runs platform actions only on the server and never hands them to the desktop app.

- `409 action_requires_desktop`: this action cannot run on the server. It is not retryable.
- `503 platform_unavailable`: the platform could not be reached right now. Retry later with backoff.

## Retrying

Retry `429`, `502` and `503` with backoff. Do not retry `400`, `401`, `403`, `404` or `409` without
changing the request.
