# Errors, Rate Limits & Credits

Failed requests are not charged.

| HTTP status | When it happens |
| --- | --- |
| 400 | The query exceeds 750 characters or 100 words |
| 401 | The API token is missing, invalid, or lacks permission |
| 402 | The account has insufficient credits |
| 403 | The account is inactive, blocked, or its trial has ended |
| 422 | The request body is invalid, such as k greater than 50 |
| 429 | The token exceeded its request-rate limit |
| 5xx | Temporary server error; retry later |

## Query-length error

```json
{
  "detail": "Query is too long. Please use at most 750 characters (your query has 800)."
}

```

## Rate limits

Each API token has a maximum number of requests per second. If you exceed the limit, the API returns HTTP `429`. Contact Webz support if you need a higher limit.

## Credits

The account must have available credits before each search. Successful responses include `credits_used` and `requests_left`.
