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

# Errors

> The error format and every error code.

## Format

Every error has the same form.

```json theme={null}
{
  "error": {
    "code": "missing_columns",
    "message": "column 'balance' was in the context and is not in these rows",
    "trace_id": "4f2a9c0d1e7b"
  }
}
```

The `code` is stable, so your code can act on it. The `message` explains the problem in words and may change between versions. The `trace_id` is also sent in the `X-Trace-Id` header of every response. Quote it when you write to us about a problem.

## Status codes

| Status | Meaning |
| - | - |
| 400 | The request cannot be answered as it is. The code says why. |
| 401 | The API key is missing or not valid. |
| 404 | The context or database named in the request has expired or was deleted. |
| 413 | The request is larger than your account's limit. |
| 422 | The request body does not match the API description. The code is `bad_input`. |
| 429 | Too many requests in a short time. Wait, then try again. |
| 500 | An error on our side. |
| 503 | The service is busy or a table of the task is too large for one request. Try again, or split the request. |

## Codes

### Input and settings

| Code | Meaning |
| - | - |
| `bad_input` | A setting is out of range or malformed, or a request field is wrong. |
| `bad_file` | A file could not be read as CSV or Parquet. |
| `bad_task` | The task is not `classification` or `regression`, or a task in words is incomplete. |
| `bad_output` | An output was asked for that the task does not give. |
| `bad_column_type` | `column_types` names a type that does not exist. |
| `unknown_column` | A column named in the request is not in the data. |
| `missing_columns` | The rows to predict lack a column the context has. |
| `duplicate_ids` | The id column holds a value twice. |
| `media_unreachable` | A link in an image, audio or document column could not be read. |

### The data

| Code | Meaning |
| - | - |
| `too_few_rows` | Too few rows have an answer, or the held-out or the context part of an evaluation is empty. |
| `no_rows` | There are no rows to predict. |
| `no_features` | No column is left to read. Every column is an id, ignored, empty or constant. |
| `one_class` | The answer holds a single class. |
| `too_many_classes` | The answer holds more classes than the model takes. |
| `constant_target` | Every row has the same numeric answer. |
| `nothing_to_fill` | `fill` found no row with an empty answer. |

### Time, groups and series

| Code | Meaning |
| - | - |
| `needs_time_column` | `known_column`, `target_delay_days` or `as_of` was given without a `time_column`. |
| `needs_group_column` | `group_target` was given without a `group_column`. |
| `bad_time_column` | The time column does not hold dates or numbers of days. |
| `missing_time` | A row to predict has no date. |
| `after_as_of` | A row to predict was known after the context's `as_of` date. |
| `group_target_varies` | A group has two different group answers. |
| `too_few_group_answers` | Fewer than four groups have a known group answer. |
| `bad_group_target` | The group answers hold one class only, too many classes, or the same number everywhere. |
| `irregular_series` | The steps of a series could not be matched to one frequency. Give `frequency`. |
| `short_series` | A series has too few steps for the horizon asked. |
| `missing_future_rows` | An input known in advance has no value for a step to forecast. |

### Databases, recommendation and tasks

| Code | Meaning |
| - | - |
| `unknown_table` | A table named in the request is not in the database. |
| `unknown_entity` | A row to predict names an entity that is not in its table. |
| `duplicate_keys` | A primary key holds a value twice. |
| `missing_keys` | A row has no primary key. |
| `too_large` | The database has more rows than your account's limit. |
| `too_few_examples` | Too few examples are dated before the first row to predict, or a table of the task could not be made. |
| `too_few_links` | Too few links around the date to make a recommendation. |
| `no_path` | The table of events does not lead to the entity table through one key or two. |
| `ambiguous_path` | The table of events leads to the entity table in more than one way. Name the keys with `through`. |

### Contexts and service

| Code | Meaning |
| - | - |
| `unknown_context` | The context has expired or was deleted. Send it again: the same rows give the same id. |
| `unknown_database` | The same, for a database. |
| `unauthorized` | The API key is missing or not valid. |
| `rate_limited` | Too many requests in a short time. |
| `out_of_memory` | A table of the task is too large for one request. |
| `service_unavailable` | The service is starting or busy. Try again in a moment. |
| `internal_error` | An error we did not expect. The message names it. |


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