> ## Documentation Index
> Fetch the complete documentation index at: https://docs.dubly.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Errors

> The error envelope and what each error code means.

Every answer is JSON in the same envelope. A successful request answers `{ "status": "success", "response": … }` with the payload in `response`:

```json theme={null}
{
  "status": "success",
  "response": { ... }
}
```

A failed request answers `{ "status": "error", "message": … }`:

```json theme={null}
{
  "status": "error",
  "message": "Human-readable error message"
}
```

The HTTP status tells you which error occurred. `message` says what went wrong, in English, for a person to read — don't branch on its text.

## Error codes

| HTTP status | Code | Meaning |
| - | - | - |
| `400` | `BAD_REQUEST` | Missing or invalid request body, or validation failed. |
| `401` | `UNAUTHORIZED` | Missing or invalid API token. |
| `403` | `FORBIDDEN` | The token is valid, but the request is refused: your credits do not cover a new dub or a lip-sync run; the requested dubbing engine is not enabled for your account; or an API editing limit is reached (at most 2 API edits per segment and 2 API update rounds per language, 2 API subtitle burn-ins per language and 2 API original-voice volume changes per dub, and 2 API lip-sync applies per language; segment corrections, timeline saves and regenerates of a segment share its edits). Nothing is charged. A dub refused for its credits has already been created and gets status "Error"; otherwise nothing was changed or started, and nothing was counted. See [Edit limits](https://docs.dubly.ai/guides/edit-limits.md). |
| `404` | `NOT_FOUND` | The requested resource does not exist. |
| `409` | `CONFLICT` | Conflicting state — e.g. lip-sync is already running for this subdub, or a previous lip-sync failed and must be restarted via support. When editing a dub: a review is in progress, an update or lip sync is running, a segment is being re-voiced, or a finished lip sync would be replaced without "reset\_lipsync": true. When burning in subtitles: a burn-in is already running for that language, or its review is in progress. When changing the original-voice volume: a language of the dub is being updated or in review. When switching lip-sync blocks: the lip sync of the language is running or not finished, or its block files have been cleaned up. Nothing was changed or started. |
| `500` | `INTERNAL_ERROR` | An unexpected server error occurred. |

The page of each endpoint in the **API Reference** tab lists when that endpoint answers with which code.

`FORBIDDEN` also answers a request that would go over one of the API's edit limits — see [Edit limits](https://docs.dubly.ai/guides/edit-limits.md).


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