# Rate limits and errors

## Limits per plan

Each plan has a number of API requests an hour: 500 on Free, 7,000 on Business and 14,000 on Enterprise.

Search, fetch and conversions have smaller limits of their own, listed in [REST API limits](/help/rest-api/sirv-rest-api/#rest-api-limits).

The hour starts with your first request. [Get API limits](/help/rest-api/reference/account/api-limits/) shows every limit and works even when you are over.

## Rate-limit headers

Every answer carries headers that show the limit for that kind of request, the requests left and when the hour resets, in epoch seconds:

```http
x-ratelimit-limit: 2000
x-ratelimit-remaining: 1999
x-ratelimit-reset: 1654273267
x-ratelimit-type: rest:post:files:upload
```

The X-Global-RateLimit headers give the same for all your requests together.

## Errors

Past a limit, the API answers 429 with a “Retry after” time: pause, then carry on.

A 401 means the token is missing or expired, so [get a new one](/help/rest-api/reference/authentication/) and try again.

A 400 is a problem with the request itself, so retrying will not help. Retry a 502 a few times, and a 503 after 15 minutes.

The [error handling guide](/help/rest-api/sirv-rest-api/#error-handling-guide) has every case, with example answers.
