---
title: ThrottleError
description: Thrown when a request is rate-limited by the workflow backend.
docs_index: /llms.txt
lastUpdated: 2026-11-26
type: reference
summary: Catch ThrottleError when a workflow storage operation is rate-limited (HTTP 429).
related:
  - /docs/api-reference/workflow-errors/workflow-world-error
  - /docs/api-reference/workflow-errors/too-early-error
---

> For an index of all documentation, see [/llms.txt](/llms.txt).

`ThrottleError` is thrown when a request to the workflow backend is rate-limited. It corresponds to HTTP 429 Too Many Requests semantics. It is about the backend limiting the SDK's own requests. To keep your workflows' calls to an upstream API under its limit, see [Rate Limits](/docs/foundations/rate-limits).

The `retryAfter` property contains the number of seconds to wait before retrying.

> The Workflow runtime handles this error automatically by backing off and retrying. You will only encounter it when interacting with world storage APIs directly.

```typescript lineNumbers
import { ThrottleError } from "workflow/errors"

try {
  await world.events.create(runId, event);
} catch (error) {
  if (ThrottleError.is(error)) { // [!code highlight]
    console.log(`Rate limited. Retry after ${error.retryAfter} seconds`);
  }
}
```

## API signature

### Properties

### Static methods

#### `ThrottleError.is(value)`

Type-safe check for `ThrottleError` instances. Preferred over `instanceof` because it works across module boundaries and VM contexts.

```typescript
import { ThrottleError } from "workflow/errors"

if (ThrottleError.is(error)) {
  // error is typed as ThrottleError
}
```

---

For a semantic overview of all documentation, see [/sitemap.md](/sitemap.md)

For an index of all available documentation, see [/llms.txt](/llms.txt)

For agent-facing discovery, including API and MCP surfaces, see [/agents.md](/agents.md)