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

# Error Codes

> API error codes and response formats

## Status Codes

| Code | Message                                                  |
| ---- | -------------------------------------------------------- |
| 400  | Invalid URL / Invalid filter value / Invalid parameter   |
| 401  | Missing API key / Invalid API key                        |
| 402  | Insufficient credits                                     |
| 403  | Member restricted / Forbidden                            |
| 404  | Not found / Profile not found                            |
| 429  | Rate limit exceeded                                      |
| 500  | Internal error                                           |
| 503  | Service temporarily unavailable. Please contact support. |

### Search-Specific Errors (400)

| Code | Message                   | Cause                                                           |
| ---- | ------------------------- | --------------------------------------------------------------- |
| 400  | Invalid filter value: ... | Invalid regex in a filter (e.g., unclosed `[`)                  |
| 400  | *(validation message)*    | Invalid search parameter (wrong type, out of range value, etc.) |

***

## Response Formats

### Standard Error (401, 403, 429, 500, 503)

```json theme={null}
{
  "detail": "Invalid API key"
}
```

### Insufficient Credits (402)

```json theme={null}
{
  "detail": {
    "error": "Insufficient credits",
    "available_credits": 12,
    "required_credits": 50,
    "cost_per_result": 1
  }
}
```

### Invalid Parameters (400)

```json theme={null}
{
  "detail": "Invalid filter value: unterminated character set at position 5"
}
```
