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

# GenerationContentError

The stored failure for this generation, or null when it succeeded

## Example Usage

```typescript theme={null}
import { GenerationContentError } from "@openrouter/sdk/models";

let value: GenerationContentError = {
  message: "Timed out waiting for the provider",
  previousErrors: [
    {
      code: 429,
      message: "Provider returned error",
      providerName: "Google",
      raw: "{\"error\":{\"code\":429,\"message\":\"Resource exhausted\"}}",
    },
  ],
  providerName: "Vertex",
  raw: "{\"error\":{\"code\":504,\"message\":\"Deadline exceeded\"}}",
  status: 504,
};
```

## Fields

| Field            | Type                                                                                   | Required             | Description                                                                    | Example                                                |
| ---------------- | -------------------------------------------------------------------------------------- | -------------------- | ------------------------------------------------------------------------------ | ------------------------------------------------------ |
| `message`        | *string*                                                                               | :heavy\_check\_mark: | Error message returned to the client                                           | Timed out waiting for the provider                     |
| `previousErrors` | [models.GenerationContentErrorAttempt](../models/generationcontenterrorattempt.mdx)\[] | :heavy\_check\_mark: | Every upstream attempt that failed before the returned error, in attempt order |                                                        |
| `providerName`   | *string*                                                                               | :heavy\_check\_mark: | Provider whose error was returned to the client, when known                    | Vertex                                                 |
| `raw`            | *string*                                                                               | :heavy\_check\_mark: | Raw error body behind the returned error, when stored                          | \{"error":\{"code":504,"message":"Deadline exceeded"}} |
| `status`         | *number*                                                                               | :heavy\_check\_mark: | HTTP status returned to the client                                             | 504                                                    |
