Follow Discord
Sweep 10 Nov 2026 · 02:18Z Build v2.1.322 539 read Stable v2.1.311 Latest v2.1.322 Next v2.1.322 Feeds RSS JSON llms.txt llms-full.txt Unofficial
HomeDocsSearch
Search the documentation

936 pages for error.

Titles and paths first, then pages whose text carries it. Each row opens that page as this site last read it.

openai-sdk Claude Developer Platform · in the page cli-sdks-libraries/libraries/openai-sdk …ict: true`. A request that sets `json_object` or `text` returns a 400 error. * Audio and file inputs are not supported. A request that includes an `input_audio` or `file` content part returns a 400 er… middleware Claude Developer Platform · in the page cli-sdks-libraries/middleware …(func(req *http.Request, next option.MiddlewareNext) (*http.Response, error) { // Before the request start := time.Now() slog.Info("sending request", "method", req.Method, "url", req.URL)… overview Claude Developer Platform · in the page cli-sdks-libraries/overview …interfaces, type safety, and built-in support for streaming, retries, error handling, and [OpenTelemetry tracing](https://platform.claude.com/docs/en/manage-claude/opentelemetry/sdk). * **Libraries an… csharp Claude Developer Platform · in the page cli-sdks-libraries/sdks/csharp …ateStreaming(parameters)) { Console.WriteLine(message); } ``` ## Error handling The SDK throws custom unchecked exception types: * `AnthropicApiException`: Base class for API errors. See this t… go Claude Developer Platform · in the page cli-sdks-libraries/sdks/go …Model: anthropic.ModelClaudeOpus5_5, }) if err != nil { panic(err.Error()) } for _, block := range message.Content { if textBlock, ok := block.AsAny().(anthropic.TextBlock); ok { fmt.Printl… java Claude Developer Platform · in the page cli-sdks-libraries/sdks/java …cribe(chunk -> { IO.println(chunk); }); // If you need to handle errors or completion of the stream client.async().messages().createStreaming(params).subscribe(new AsyncStreamResponse.Handler<>()… php Claude Developer Platform · in the page cli-sdks-libraries/sdks/php …stOptions::with(streamingTransporter: $myStreamingClient), ); ``` ## Error handling When the library is unable to connect to the API, or if the API returns a non-success status code (that is, a 4xx… For Amazon Bedrock support Claude Developer Platform · in the page cli-sdks-libraries/sdks/python …the file contents are read asynchronously automatically. ## Handling errors The SDK raises a subclass of `APIError` when it can’t connect to the API or when the API returns a 4xx or 5xx status code:… Automatically handles tool execution loop Claude Developer Platform · in the page cli-sdks-libraries/sdks/ruby …laude.com/docs/en/build-with-claude/structured-outputs). ## Handling errors When the library is unable to connect to the API, or if the API returns a non-success status code (that is, a 4xx or 5xx r… typescript Claude Developer Platform · in the page cli-sdks-libraries/sdks/typescript …: [weatherTool] }); console.log(finalMessage.content); ``` ### Tool errors To report an error from a tool back to the model, throw a `ToolError` from the `run` function. Unlike a plain `Error`, `To… home Claude Developer Platform · in the page home …form.claude.com/docs/en/api/rate-limits"> Rate limits and errors </HomeJourneyLink> <HomeJourneyLink icon="calculator" href="https://platform.claude.com/docs/en/about-… access-transparency-log Claude Developer Platform · in the page manage-claude/access-transparency-log …Access Transparency is not this case: it continues to be served. ### Errors Errors use the standard Compliance API JSON error envelope on every endpoint, including the text and binary ones. See [Han… admin-api Claude Developer Platform · in the page manage-claude/admin-api …eaningful names and descriptions for workspaces and API keys * Handle errors from failed operations * Regularly audit member roles and permissions * Archive unused workspaces and delete pending invite… analytics-api Claude Developer Platform · in the page manage-claude/analytics-api …eshness varies by query. Rather than assuming a fixed time, check the error response: requesting a date that is not yet available returns a 400 error naming the most recent available day. If data is n… api-and-data-retention Claude Developer Platform · in the page manage-claude/api-and-data-retention …age content, where it is protected under HIPAA safeguards. ### HIPAA error handling Your signed BAA is the official source of truth for which features are covered. The API also enforces these restri… authentication Claude Developer Platform · in the page manage-claude/authentication …a workspace omits the header, the API returns a 400 `invalid_request_error`: ```json JSON { "type": "error", "error": { "type": "invalid_request_error", "message": "This API key is not s… claude-tag-api Claude Developer Platform · in the page manage-claude/claude-tag-api …one keeps returning `404`. When a stored `id` returns `404` with no `error_code`, [list your workspaces](https://platform.claude.com/docs/en/manage-claude/claude-tag-api#list-workspaces) with the sam… cmek Claude Developer Platform · in the page manage-claude/cmek …ailable](https://platform.claude.com/docs/en/manage-claude/compliance-errors#local-sessions-temporarily-unavailable) instead of transcript content. Session metadata is still listed. * Office agents. *… cmek-admin-api Claude Developer Platform · in the page manage-claude/cmek-admin-api …key_<id>") print(f"status: {validation.status}") print(f"error: {validation.error}") ``` ```typescript TypeScript const client = new Anthropic(); const validatio… cmek-aws-kms Claude Developer Platform · in the page manage-claude/cmek-aws-kms …bs> Each check of the key in Claude adds four expected access-denied errors to CloudTrail. You can [filter them out](https://platform.claude.com/docs/en/manage-claude/cmek-troubleshooting#cloudtrail)… cmek-azure-key-vault Claude Developer Platform · in the page manage-claude/cmek-azure-key-vault …om the output. If the command exits with an “already exists” error, get the `id` with this command instead: ```bash az ad sp show --id 8635ae1a-3e5d-44e8-a4ed-e0f614466f87 --… cmek-claude-platform-on-aws Claude Developer Platform · in the page manage-claude/cmek-claude-platform-on-aws …call, so a key policy problem shows up here. If you get a KMS access error, see the [causes and fixes](https://platform.claude.com/docs/en/manage-claude/cmek-troubleshooting#claude-platform-on-aws).… cmek-coverage-claude-enterprise Claude Developer Platform · in the page manage-claude/cmek-coverage-claude-enterprise …ailable](https://platform.claude.com/docs/en/manage-claude/compliance-errors#local-sessions-temporarily-unavailable) instead of transcript content. Session metadata is still listed. * Backups and snap… cmek-coverage-claude-platform Claude Developer Platform · in the page manage-claude/cmek-coverage-claude-platform …tps://platform.claude.com/docs/en/manage-claude/organization-webhooks#errors) (beta) | Turned off for an organization whose default workspace uses a key. Requests return a 400 error.… cmek-how-it-works Claude Developer Platform · in the page manage-claude/cmek-how-it-works …s it as a prerequisite. In AWS CloudTrail, some entries are [expected errors](https://platform.claude.com/docs/en/manage-claude/cmek-troubleshooting#cloudtrail). Changes to your CMEK configuration ap… cmek-key-lifecycle Claude Developer Platform · in the page manage-claude/cmek-key-lifecycle …bled, Messages API requests in a workspace that uses it return [a 400 error with the code `cmek_key_disabled`](https://platform.claude.com/docs/en/manage-claude/cmek-troubleshooting#cmek-key-disabled)… cmek-troubleshooting Claude Developer Platform · in the page manage-claude/cmek-troubleshooting …e/cmek-troubleshooting description: Find the cause and fix for a CMEK error message, a failed verification, or an unexpected log entry. --- **Verify** in the Claude Console, **Add** on claude.ai, and… Fetch the first page (newest activities first). Claude Developer Platform · in the page manage-claude/compliance-activity-feed …urned page remains valid; a request that fails (5xx, timeout, network error) does not advance your position. Retry the same request with the same cursor. Only move to the next cursor after you have st… compliance-api Claude Developer Platform · in the page manage-claude/compliance-api …equests](https://platform.claude.com/docs/en/manage-claude/compliance-errors#429-too-many-requests) for the response headers and retry contract. *** ## Versioning Send the `anthropic-version` heade… compliance-api-access Claude Developer Platform · in the page manage-claude/compliance-api-access …e change takes effect immediately. If the page shows a page-not-found error, or doesn’t show the **Compliance API** section, you do not have the admin role, your organization is linked to a parent org… WARNING: This operation PERMANENTLY deletes the chat, all of its messages, Claude Developer Platform · in the page manage-claude/compliance-content-data …rbidden](https://platform.claude.com/docs/en/manage-claude/compliance-errors#403-forbidden). Endpoints on this page paginate two ways; see [Paginate results](https://platform.claude.com/docs/en/manag… compliance-faq Claude Developer Platform · in the page manage-claude/compliance-faq …ts returns the following response. ```json Response { "error": { "type": "permission_error", "message": "Missing required scopes. Got: ['api:admin', 'read:compliance_act… before_id is the first_id from a previous response Claude Developer Platform · in the page manage-claude/compliance-integration-patterns …equests](https://platform.claude.com/docs/en/manage-claude/compliance-errors#429-too-many-requests) for the response headers and retry contract. | Pattern | Choose when… compliance-org-data Claude Developer Platform · in the page manage-claude/compliance-org-data …rbidden](https://platform.claude.com/docs/en/manage-claude/compliance-errors#403-forbidden). </Check> The endpoints on this page expose the directory side of a Claude Enterprise organization: its lin… check-events-against-results Claude Developer Platform · in the page manage-claude/compliance-security-posture/check-events-against-results …equests](https://platform.claude.com/docs/en/manage-claude/compliance-errors#429-too-many-requests) describes; an organization whose calls fail after your retries is not read on this run, and a failed… results-reference Claude Developer Platform · in the page manage-claude/compliance-security-posture/results-reference …ts: the request, the response fields, what each status means, and the errors." --- <Note> To enable the Compliance API, see [Set up the Compliance API](https://platform.claude.com/docs/en/manage-cl… send-events Claude Developer Platform · in the page manage-claude/compliance-security-posture/send-events …uns:** If a request fails after the retries in [Handle Compliance API errors](https://platform.claude.com/docs/en/manage-claude/compliance-errors), end the run. The next run reads its whole window aga… compliance-sessions Claude Developer Platform · in the page manage-claude/compliance-sessions …rbidden](https://platform.claude.com/docs/en/manage-claude/compliance-errors#403-forbidden). The following table maps each product, and where it runs, to the endpoint family that returns its sessions… data-residency Claude Developer Platform · in the page manage-claude/data-residency …et 4.5 (deprecated), Claude Haiku 4.5, or earlier models return a 400 error. <Note> The `inference_geo` parameter is available on the Claude API (first-party), [Claude Platform on AWS](https://plat… inference-hooks Claude Developer Platform · in the page manage-claude/inference-hooks …conversation. If your AI security server is unreachable, returns an error, or doesn’t respond within the timeout, your organization’s failure handling setting determines the outcome: block the reque… inference-hooks-configuration Claude Developer Platform · in the page manage-claude/inference-hooks-configuration …| | Transport error | DNS resolution, the TLS handshake, or the connection failed, or the hostname resolves to a private address.… inference-hooks-endpoint Claude Developer Platform · in the page manage-claude/inference-hooks-endpoint …re replaced by placeholder markers, and raw bytes are never sent. `is_error`: whether the tool call failed. `tool_name`: the tool’s name, so a policy can condition on tool identity without cross-refer… ip-allowlist Claude Developer Platform · in the page manage-claude/ip-allowlist …are rejected. For example, the Messages API returns a 403 `permission_error` with the message `Your IP address isn't in this organization's allowed range.` * **People** who connect from a disallowed a… api Claude Developer Platform · in the page manage-claude/opentelemetry/api …elivered to your collector, or how the delivery failed (see [Delivery errors](https://platform.claude.com/docs/en/manage-claude/opentelemetry/api#delivery-errors)). 5. Check that the `anthropic.test`… organization-webhooks Claude Developer Platform · in the page manage-claude/organization-webhooks …rganization-webhooks#endpoint-fields), plus its `signing_secret`. ## Errors A request returns a `400` if: * Its `url` doesn’t meet the rules in [Endpoint fields](https://platform.claude.com/docs/en… plugins-api Claude Developer Platform · in the page manage-claude/plugins-api …sing`, and `400 scan_failed` if the scan reads `fail`, `unknown`, or `errored` (`warn` is accepted). A pinned plugin cannot be unpinned, here or in claude.ai. To roll back, set `served_version_id` to… rate-limits-api Claude Developer Platform · in the page manage-claude/rate-limits-api …the model string doesn’t match any group, the endpoint returns a 404 error. Any model your organization has access to matches its group. The `model` parameter is supported on the organization endpoin… spend-limits-api Claude Developer Platform · in the page manage-claude/spend-limits-api …xt wrap user_ids[]=user_01AbCdEfGh&user_ids[]=user_01JkLmNoPq ``` ## Error responses Error responses follow the standard shape documented in [Claude API errors](https://platform.claude.com/docs/en/a… usage-cost-analytics-api Claude Developer Platform · in the page manage-claude/usage-cost-analytics-api …r matches nothing; the exception is `rbac_group_id`, which returns an error instead when teams aren’t available to your organization. The [usage](https://platform.claude.com/docs/en/api/beta/organizat… user-management Claude Developer Platform · in the page manage-claude/user-management …vailability. Creating an invite when no seat is free fails with a 400 error rather than purchasing a seat. Withdrawing the invite, letting it expire, or removing the member later returns the seat to t…
Feedback