> ## 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. # GenerationContentErrorAttempt A single failed upstream attempt recorded for the generation ## Example Usage ```typescript theme={null} import { GenerationContentErrorAttempt } from "@openrouter/sdk/models"; let value: GenerationContentErrorAttempt = { code: 429, message: "Provider returned error", providerName: "Google", raw: "{\"error\":{\"code\":429,\"message\":\"Resource exhausted\"}}", }; ``` ## Fields | Field | Type | Required | Description | Example | | -------------- | -------- | -------------------- | ---------------------------------------------------- | ------------------------------------------------------- | | `code` | *number* | :heavy\_check\_mark: | HTTP status returned by this attempt | 429 | | `message` | *string* | :heavy\_check\_mark: | Error message returned by this attempt | Provider returned error | | `providerName` | *string* | :heavy\_check\_mark: | Provider that served this attempt, when known | Google | | `raw` | *string* | :heavy\_check\_mark: | Raw error body returned by the provider, when stored | \{"error":\{"code":429,"message":"Resource exhausted"}} |