Interface ErrorDetails.Visitor
-
- All Implemented Interfaces:
public interface ErrorDetails.Visitor<T extends Object>An interface that defines how to map each variant of ErrorDetails to a value of type T.
-
-
Method Summary
Modifier and Type Method Description abstract TvisitAvailableToolsLimitExceeded(AvailableToolsLimitExceededErrorDetails availableToolsLimitExceeded)The tools available after a message exceed a limit on their number or their size. abstract TvisitClaudeCodeKeyCreatorNotMember(ClaudeCodeKeyCreatorNotMemberErrorDetails claudeCodeKeyCreatorNotMember)The API key belongs to the Claude Code workspace, and the user who created it is no longer a member of the organization or of that workspace. abstract TvisitClaudeCodeVersionTooOld(ClaudeCodeVersionTooOldErrorDetails claudeCodeVersionTooOld)The request comes from a Claude Code version older than the minimum that the requested model or the organization requires. abstract TvisitCmekKeyDisabled(CmekKeyDisabledErrorDetails cmekKeyDisabled)The workspace's customer-managed encryption key is disabled or revoked. abstract TvisitCmekKeyNetworkBlocked(CmekKeyNetworkBlockedErrorDetails cmekKeyNetworkBlocked)The key management service's network access controls blocked the request to the workspace's customer-managed encryption key. abstract TvisitCompactionBlockAmbiguous(CompactionBlockAmbiguousErrorDetails compactionBlockAmbiguous)messagesholds more than onecompactionblock with content.abstract TvisitCompactionBlockMisplaced(CompactionBlockMisplacedErrorDetails compactionBlockMisplaced)The compactionblock is not the first block of the conversation, or is in asystemmessage.abstract TvisitCompactionContentMismatch(CompactionContentMismatchErrorDetails compactionContentMismatch)The compactionblock'scontentdiffers from the text itssignaturerecorded.abstract TvisitCompactionIncompleteTurn(CompactionIncompleteTurnErrorDetails compactionIncompleteTurn)The compaction request ends on an assistantturn that is not finished.abstract TvisitCompactionNothingToSummarize(CompactionNothingToSummarizeErrorDetails compactionNothingToSummarize)messagesholds nouserorassistantcontent to summarize or adopt.abstract TvisitCompactionSignatureInvalid(CompactionSignatureInvalidErrorDetails compactionSignatureInvalid)The compactionblock'ssignaturedoes not verify.abstract TvisitCompactionTooManyToolReferences(CompactionTooManyToolReferencesErrorDetails compactionTooManyToolReferences)The conversation references more distinct tools than a compactionblock can record.abstract TvisitCompactionToolChangesMismatch(CompactionToolChangesMismatchErrorDetails compactionToolChangesMismatch)The compactionblock'stool_changesdiffers from what was returned with the block.abstract TvisitOrganizationOnHold(OrganizationOnHoldErrorDetails organizationOnHold)Anthropic has disabled the organization for trust and safety reasons. abstract TvisitRequestBodyEncodingInvalid(RequestBodyEncodingInvalidErrorDetails requestBodyEncodingInvalid)The request body is not valid for its Content-Encoding.abstract TvisitRequestBodyEncodingUnsupported(RequestBodyEncodingUnsupportedErrorDetails requestBodyEncodingUnsupported)The request's Content-Encodingis not supported.abstract TvisitThreadAlreadyContinued(ThreadAlreadyContinuedErrorDetails threadAlreadyContinued)The response that previous_message_idnames has already been continued, and each response can be continued only once.abstract TvisitThreadContinueInFlight(ThreadContinueInFlightErrorDetails threadContinueInFlight)Another request is still continuing from the same previous_message_id.abstract TvisitThreadFingerprintMismatch(ThreadFingerprintMismatchErrorDetails threadFingerprintMismatch)A field that must stay the same across a Thread's turns differs from the value stored with the Thread; the message names each such field. abstract TvisitThreadUnsupportedRequest(ThreadUnsupportedRequestErrorDetails threadUnsupportedRequest)The request combines threadwith a request field or an organization setting that Threads do not support;unsupported, when present, names it.abstract TvisitToolNameConflict(ToolNameConflictErrorDetails toolNameConflict)A tool made available in messagestakes a name that an available tool of another kind, or of another MCP server, already holds.abstract TvisitToolReferenceUnresolved(ToolReferenceUnresolvedErrorDetails toolReferenceUnresolved)A tool change or MCP tool listing references a tool or MCP server that is not defined at that position in the conversation. abstract TvisitUserProfileRequired(UserProfileRequiredErrorDetails userProfileRequired)The request sets billing_policy.bill_toto"user_profile"but names no user profile.abstract TvisitLinkedOrganizationBillingUnavailable(LinkedOrganizationBillingUnavailableErrorDetails linkedOrganizationBillingUnavailable)Anthropic cannot currently bill the organization linked to the request's user profile, for a reason that lies with that organization's own account. abstract TvisitLinkedOrganizationSpendLimitReached(LinkedOrganizationSpendLimitReachedErrorDetails linkedOrganizationSpendLimitReached)The organization linked to the request's user profile has reached a spend limit that it set, or lacks credit for the request. abstract TvisitUserProfileBillingNotAuthorized(UserProfileBillingNotAuthorizedErrorDetails userProfileBillingNotAuthorized)The customer that the named user profile represents has not authorized the caller to bill them, or the authorization that the request's credential uses has ended. abstract TvisitUserProfileNotBillable(UserProfileNotBillableErrorDetails userProfileNotBillable)The caller is not allowed to bill the user profile that the request names. abstract TvisitThreadNotFound(ThreadNotFoundErrorDetails threadNotFound)No usable Thread state was found for previous_message_id.abstract TvisitSkillReadBlockedUndecryptable(SkillReadBlockedUndecryptableErrorDetails skillReadBlockedUndecryptable)A custom skill the request names is stored under an encryption key state the workspace cannot currently decrypt. abstract TvisitRequestBodyTooLargeAfterDecoding(RequestBodyTooLargeAfterDecodingErrorDetails requestBodyTooLargeAfterDecoding)The compressed request body exceeds the request size limit once decoded. abstract TvisitContractSpendLimitReached(ContractSpendLimitReachedErrorDetails contractSpendLimitReached)The organization has reached the spend limit of its contract. abstract TvisitEnforcedSpendLimitReached(EnforcedSpendLimitReachedErrorDetails enforcedSpendLimitReached)The organization has crossed the monthly API usage threshold of its API tier. abstract TvisitRampLimitExceeded(RampLimitExceededErrorDetails rampLimitExceeded)The request would exceed a ramp limit, which caps how fast usage can grow. abstract TvisitCmekKeyUnreachable(CmekKeyUnreachableErrorDetails cmekKeyUnreachable)The workspace's customer-managed encryption key could not be reached. abstract TvisitCompactionUnavailable(CompactionUnavailableErrorDetails compactionUnavailable)The compaction could not be completed for a transient server reason. abstract TvisitStorageQuotaExceeded(StorageQuotaExceededErrorDetails storageQuotaExceeded)The organization's file storage quota is exhausted. abstract TvisitFileNotDownloadable(FileNotDownloadableErrorDetails fileNotDownloadable)The file has downloadable: false.abstract TvisitFileExpired(FileExpiredErrorDetails fileExpired)The file's expires_athas passed, so its content is no longer available.abstract TvisitCmekContextUnavailable(CmekContextUnavailableErrorDetails cmekContextUnavailable)The workspace's encryption settings could not be read, so the request was refused. abstract TvisitOrgApiKeyLimitExceeded(OrgApiKeyLimitExceededErrorDetails orgApiKeyLimitExceeded)The organization has reached its limit of active API keys. abstract TvisitWorkspaceApiKeyLimitExceeded(WorkspaceApiKeyLimitExceededErrorDetails workspaceApiKeyLimitExceeded)The workspace has reached its limit of active API keys. abstract TvisitSandboxEgressRestricted(SandboxEgressRestrictedErrorDetails sandboxEgressRestricted)The request came from a Claude sandbox with restricted network access, which is not allowed to make this change. abstract TvisitUserProfileNotFound(UserProfileNotFoundErrorDetails userProfileNotFound)The request depends on a user profile that does not exist in the organization or is no longer active. abstract TvisitExternalKeyInWorkspacePolicy(ExternalKeyInWorkspacePolicyErrorDetails externalKeyInWorkspacePolicy)The External Key can't be deleted or reconfigured while the organization's Workspace Policy lists it as an allowed key. abstract TvisitAlreadyMember(AlreadyMemberErrorDetails alreadyMember)The email address already belongs to a user in the organization. abstract TvisitCannotInviteEmailsWithUnverifiedDomains(CannotInviteEmailsWithUnverifiedDomainsErrorDetails cannotInviteEmailsWithUnverifiedDomains)The email address's domain is not one of the verified domains of the organization's parent organization. abstract TvisitEmailDomainNotAllowed(EmailDomainNotAllowedErrorDetails emailDomainNotAllowed)The organization restricts invites to an allowed list of email domains, and the list is empty or does not include the email address's domain. abstract TvisitInviteAlreadyExists(InviteAlreadyExistsErrorDetails inviteAlreadyExists)A pending invite already exists for the email address. abstract TvisitOrgMemberLimitExceeded(OrgMemberLimitExceededErrorDetails orgMemberLimitExceeded)The organization has reached the member limit that Anthropic set for it. abstract TvisitRbacGroupGrantsOwnerAccess(RbacGroupGrantsOwnerAccessErrorDetails rbacGroupGrantsOwnerAccess)A role attached to an RBAC Group in the request grants owner access, so this API does not add members to that group (directly or through an invite), remove its members, or delete it. abstract TvisitRbacGroupOwnerAccessUnconfirmed(RbacGroupOwnerAccessUnconfirmedErrorDetails rbacGroupOwnerAccessUnconfirmed)The API could not finish checking whether an RBAC Group in the request grants owner access, so it made no change. abstract TvisitCannotRemoveLastMember(CannotRemoveLastMemberErrorDetails cannotRemoveLastMember)The user is the organization's only member. abstract TvisitConcurrentMembershipChange(ConcurrentMembershipChangeErrorDetails concurrentMembershipChange)Another change to the organization's members is in progress. abstract TvisitExternalKeyValidationFailed(ExternalKeyValidationFailedErrorDetails externalKeyValidationFailed)The External Key failed Anthropic's validation, so the request was refused. abstract TvisitExternalKeyValidationTimedOut(ExternalKeyValidationTimedOutErrorDetails externalKeyValidationTimedOut)Anthropic's validation of the External Key did not finish in time, so the request was refused. abstract TvisitKeyProfileMismatch(KeyProfileMismatchErrorDetails keyProfileMismatch)After this request, the External Key and the Workspace would not have the same user profile. abstract TvisitWorkspacePolicyViolation(WorkspacePolicyViolationErrorDetails workspacePolicyViolation)The request breaks the organization's Workspace Policy. abstract TvisitExternalKeyChanged(ExternalKeyChangedErrorDetails externalKeyChanged)The external key changed while the request was validating it. abstract TvisitWorkspaceMemberLimitExceeded(WorkspaceMemberLimitExceededErrorDetails workspaceMemberLimitExceeded)The workspace has reached the member limit that Anthropic set for it. abstract TvisitOrganizationTypeNotSupported(OrganizationTypeNotSupportedErrorDetails organizationTypeNotSupported)The endpoint does not support the organization's type. abstract TvisitParentOrganizationRequired(ParentOrganizationRequiredErrorDetails parentOrganizationRequired)The endpoint serves only organizations that belong to a parent organization, and this organization belongs to none. abstract TvisitRbacRoleNotFound(RbacRoleNotFoundErrorDetails rbacRoleNotFound)No RBAC Role with this ID was found. abstract TvisitEnvironmentCreateDisabled(BetaEnvironmentCreateDisabledErrorDetails environmentCreateDisabled)Anthropic has turned off creating environments for this organization. abstract TvisitEnvironmentArchived(BetaEnvironmentArchivedErrorDetails environmentArchived)The environment is archived, so it cannot be updated. abstract TvisitInvalidConfigTypeChange(BetaInvalidConfigTypeChangeErrorDetails invalidConfigTypeChange)config.typediffers from the environment's stored type, which cannot change after creation.abstract TvisitEnvironmentUpdateDisabled(BetaEnvironmentUpdateDisabledErrorDetails environmentUpdateDisabled)Anthropic has turned off updating environments for this organization. abstract TvisitHeartbeatPreconditionFailed(BetaHeartbeatPreconditionFailedErrorDetails heartbeatPreconditionFailed)expected_last_heartbeatdoes not match the stored heartbeat, so another worker may hold the lease.abstract TvisitInvalidMetadata(BetaInvalidMetadataErrorDetails invalidMetadata)metadatahas too many keys, a key or value that is too long, or a reserved key.abstract TvisitCannotSignOutPrimaryOwner(BetaCannotSignOutPrimaryOwnerErrorDetails cannotSignOutPrimaryOwner)The member is the organization's primary owner, whom no API key or token can sign out. abstract TvisitCannotSignOutSelf(BetaCannotSignOutSelfErrorDetails cannotSignOutSelf)The member is the user the API key or token belongs to. abstract TvisitOrganizationNotEnrolledInBeta(BetaOrganizationNotEnrolledInBetaErrorDetails organizationNotEnrolledInBeta)The beta that the endpoint requires is not enabled for the organization. abstract TvisitCannotSignOutManagedMember(BetaCannotSignOutManagedMemberErrorDetails cannotSignOutManagedMember)The member has the managedrole, and this API key or token cannot sign them out.abstract TvisitCannotSignOutMembershipAdmin(BetaCannotSignOutMembershipAdminErrorDetails cannotSignOutMembershipAdmin)The member is a membership admin, and the person the API key or token belongs to is not allowed to sign out membership admins. abstract TvisitCannotSignOutOwner(BetaCannotSignOutOwnerErrorDetails cannotSignOutOwner)The member is an owner or has owner permissions, and this API key or token cannot sign them out. abstract TvisitCannotSignOutPrivilegedMember(BetaCannotSignOutPrivilegedMemberErrorDetails cannotSignOutPrivilegedMember)This OAuth token cannot sign out a membership admin or a member whose roles grant owner, user management, or identity and access management. abstract TvisitSpendLimitsAdminApiWritesNotEnabled(BetaSpendLimitsAdminApiWritesNotEnabledErrorDetails spendLimitsAdminApiWritesNotEnabled)The organization cannot retrieve, set or delete spend limits with an Admin API credential. abstract TvisitUnsupportedCharset(BetaUnsupportedCharsetErrorDetails unsupportedCharset)The request's Content-Typeheader names a charset other than UTF-8, ISO-8859-1 or US-ASCII.abstract TvisitPluginNameTaken(BetaPluginNameTakenErrorDetails pluginNameTaken)The marketplace already holds this name. abstract TvisitSkillNameTaken(BetaSkillNameTakenErrorDetails skillNameTaken)One of the Plugin's skills has the name of an organization skill. abstract TvisitRegistrationPending(BetaRegistrationPendingErrorDetails registrationPending)The Plugin version was stored but is not yet usable in claude.ai. abstract TvisitScanFailed(BetaScanFailedErrorDetails scanFailed)The version in plugin_version_iddid not pass its content scan, so it cannot be served.abstract TvisitScanPending(BetaScanPendingErrorDetails scanPending)The content scan of the version in plugin_version_idis still running.abstract TvisitSlackChannelSetUpSettingsRefused(BetaSlackChannelSetUpSettingsRefusedErrorDetails slackChannelSetUpSettingsRefused)The request set the channel up, and settingswas then refused.abstract TvisitApiKeyScopeMissing(BetaApiKeyScopeMissingErrorDetails apiKeyScopeMissing)The API key lacks the scope the request needs: read:claude_tagfor a read,write:claude_tagfor a change.abstract TvisitClaudeTagWritesNotEnabled(BetaClaudeTagWritesNotEnabledErrorDetails claudeTagWritesNotEnabled)Changes through the Claude Tag API are not enabled for the organization. abstract TvisitComplianceConfigurationRestricted(BetaComplianceConfigurationRestrictedErrorDetails complianceConfigurationRestricted)The organization's compliance configuration does not let Claude Tag store anything new. abstract TvisitOrganizationLevelScopedApiKeyRequired(BetaOrganizationLevelScopedApiKeyRequiredErrorDetails organizationLevelScopedApiKeyRequired)The credential is not a scoped API key that is bound at the organization level. abstract TvisitEnvironmentNotFound(BetaEnvironmentNotFoundErrorDetails environmentNotFound)settings.environment_idnames no Environment within the organization's reach.abstract TvisitSlackChannelSetUpEnvironmentNotFound(BetaSlackChannelSetUpEnvironmentNotFoundErrorDetails slackChannelSetUpEnvironmentNotFound)settings.environment_idnames no Environment within the organization's reach, and the request had set the channel up by then.abstract TvisitSlackChannelSetUpSettingsConflict(BetaSlackChannelSetUpSettingsConflictErrorDetails slackChannelSetUpSettingsConflict)The request set the channel up, and something else then changed the channel or removed it. abstract TvisitBundleAttachmentNotSupported(BetaBundleAttachmentNotSupportedErrorDetails bundleAttachmentNotSupported)The Bundle has an attachment this API does not support editing, so its instructions can be changed only in claude.ai. abstract TvisitBundleOnCall(BetaBundleOnCallErrorDetails bundleOnCall)This Bundle's instructions are managed in claude.ai and can't be changed through the API. Tunknown(JsonValue json)Maps an unknown variant of ErrorDetails to a value of type T. -
-
Method Detail
-
visitAvailableToolsLimitExceeded
abstract T visitAvailableToolsLimitExceeded(AvailableToolsLimitExceededErrorDetails availableToolsLimitExceeded)
The tools available after a message exceed a limit on their number or their size.
-
visitClaudeCodeKeyCreatorNotMember
abstract T visitClaudeCodeKeyCreatorNotMember(ClaudeCodeKeyCreatorNotMemberErrorDetails claudeCodeKeyCreatorNotMember)
The API key belongs to the Claude Code workspace, and the user who created it is no longer a member of the organization or of that workspace.
-
visitClaudeCodeVersionTooOld
abstract T visitClaudeCodeVersionTooOld(ClaudeCodeVersionTooOldErrorDetails claudeCodeVersionTooOld)
The request comes from a Claude Code version older than the minimum that the requested model or the organization requires. Update Claude Code, then retry.
-
visitCmekKeyDisabled
abstract T visitCmekKeyDisabled(CmekKeyDisabledErrorDetails cmekKeyDisabled)
The workspace's customer-managed encryption key is disabled or revoked. Re-enable the key, then retry.
-
visitCmekKeyNetworkBlocked
abstract T visitCmekKeyNetworkBlocked(CmekKeyNetworkBlockedErrorDetails cmekKeyNetworkBlocked)
The key management service's network access controls blocked the request to the workspace's customer-managed encryption key. The key itself may be healthy.
-
visitCompactionBlockAmbiguous
abstract T visitCompactionBlockAmbiguous(CompactionBlockAmbiguousErrorDetails compactionBlockAmbiguous)
messagesholds more than onecompactionblock with content. Send only the block the conversation returned last.
-
visitCompactionBlockMisplaced
abstract T visitCompactionBlockMisplaced(CompactionBlockMisplacedErrorDetails compactionBlockMisplaced)
The
compactionblock is not the first block of the conversation, or is in asystemmessage.
-
visitCompactionContentMismatch
abstract T visitCompactionContentMismatch(CompactionContentMismatchErrorDetails compactionContentMismatch)
The
compactionblock'scontentdiffers from the text itssignaturerecorded.
-
visitCompactionIncompleteTurn
abstract T visitCompactionIncompleteTurn(CompactionIncompleteTurnErrorDetails compactionIncompleteTurn)
The compaction request ends on an
assistantturn that is not finished.
-
visitCompactionNothingToSummarize
abstract T visitCompactionNothingToSummarize(CompactionNothingToSummarizeErrorDetails compactionNothingToSummarize)
messagesholds nouserorassistantcontent to summarize or adopt.
-
visitCompactionSignatureInvalid
abstract T visitCompactionSignatureInvalid(CompactionSignatureInvalidErrorDetails compactionSignatureInvalid)
The
compactionblock'ssignaturedoes not verify.
-
visitCompactionTooManyToolReferences
abstract T visitCompactionTooManyToolReferences(CompactionTooManyToolReferencesErrorDetails compactionTooManyToolReferences)
The conversation references more distinct tools than a
compactionblock can record.
-
visitCompactionToolChangesMismatch
abstract T visitCompactionToolChangesMismatch(CompactionToolChangesMismatchErrorDetails compactionToolChangesMismatch)
The
compactionblock'stool_changesdiffers from what was returned with the block.
-
visitOrganizationOnHold
abstract T visitOrganizationOnHold(OrganizationOnHoldErrorDetails organizationOnHold)
Anthropic has disabled the organization for trust and safety reasons. An organization disabled for any other reason, such as billing, does not get this code.
appeal_url, when present, is where the organization can appeal.
-
visitRequestBodyEncodingInvalid
abstract T visitRequestBodyEncodingInvalid(RequestBodyEncodingInvalidErrorDetails requestBodyEncodingInvalid)
The request body is not valid for its
Content-Encoding.
-
visitRequestBodyEncodingUnsupported
abstract T visitRequestBodyEncodingUnsupported(RequestBodyEncodingUnsupportedErrorDetails requestBodyEncodingUnsupported)
The request's
Content-Encodingis not supported.
-
visitThreadAlreadyContinued
abstract T visitThreadAlreadyContinued(ThreadAlreadyContinuedErrorDetails threadAlreadyContinued)
The response that
previous_message_idnames has already been continued, and each response can be continued only once. Continue from the Thread's most recent responseid.
-
visitThreadContinueInFlight
abstract T visitThreadContinueInFlight(ThreadContinueInFlightErrorDetails threadContinueInFlight)
Another request is still continuing from the same
previous_message_id. Wait for it to complete and continue from its responseid, or replay the full conversation withthread: {"type": "create"}.
-
visitThreadFingerprintMismatch
abstract T visitThreadFingerprintMismatch(ThreadFingerprintMismatchErrorDetails threadFingerprintMismatch)
A field that must stay the same across a Thread's turns differs from the value stored with the Thread; the message names each such field. Send the stored values, or replay the full conversation with
thread: {"type": "create"}to change them.
-
visitThreadUnsupportedRequest
abstract T visitThreadUnsupportedRequest(ThreadUnsupportedRequestErrorDetails threadUnsupportedRequest)
The request combines
threadwith a request field or an organization setting that Threads do not support;unsupported, when present, names it. Send the full conversation withoutthread, or change that field.
-
visitToolNameConflict
abstract T visitToolNameConflict(ToolNameConflictErrorDetails toolNameConflict)
A tool made available in
messagestakes a name that an available tool of another kind, or of another MCP server, already holds.
-
visitToolReferenceUnresolved
abstract T visitToolReferenceUnresolved(ToolReferenceUnresolvedErrorDetails toolReferenceUnresolved)
A tool change or MCP tool listing references a tool or MCP server that is not defined at that position in the conversation.
-
visitUserProfileRequired
abstract T visitUserProfileRequired(UserProfileRequiredErrorDetails userProfileRequired)
The request sets
billing_policy.bill_toto"user_profile"but names no user profile. Name the profile to bill in theanthropic-user-profile-idheader.
-
visitLinkedOrganizationBillingUnavailable
abstract T visitLinkedOrganizationBillingUnavailable(LinkedOrganizationBillingUnavailableErrorDetails linkedOrganizationBillingUnavailable)
Anthropic cannot currently bill the organization linked to the request's user profile, for a reason that lies with that organization's own account. The response does not say what the reason is.
-
visitLinkedOrganizationSpendLimitReached
abstract T visitLinkedOrganizationSpendLimitReached(LinkedOrganizationSpendLimitReachedErrorDetails linkedOrganizationSpendLimitReached)
The organization linked to the request's user profile has reached a spend limit that it set, or lacks credit for the request. The response does not say which applies.
-
visitUserProfileBillingNotAuthorized
abstract T visitUserProfileBillingNotAuthorized(UserProfileBillingNotAuthorizedErrorDetails userProfileBillingNotAuthorized)
The customer that the named user profile represents has not authorized the caller to bill them, or the authorization that the request's credential uses has ended. The response does not say which applies.
-
visitUserProfileNotBillable
abstract T visitUserProfileNotBillable(UserProfileNotBillableErrorDetails userProfileNotBillable)
The caller is not allowed to bill the user profile that the request names. The response gives no more specific error code and does not say what the reason is.
-
visitThreadNotFound
abstract T visitThreadNotFound(ThreadNotFoundErrorDetails threadNotFound)
No usable Thread state was found for
previous_message_id. Replay the full conversation withthread: {"type": "create"}to start a new Thread.
-
visitSkillReadBlockedUndecryptable
abstract T visitSkillReadBlockedUndecryptable(SkillReadBlockedUndecryptableErrorDetails skillReadBlockedUndecryptable)
A custom skill the request names is stored under an encryption key state the workspace cannot currently decrypt.
-
visitRequestBodyTooLargeAfterDecoding
abstract T visitRequestBodyTooLargeAfterDecoding(RequestBodyTooLargeAfterDecodingErrorDetails requestBodyTooLargeAfterDecoding)
The compressed request body exceeds the request size limit once decoded.
-
visitContractSpendLimitReached
abstract T visitContractSpendLimitReached(ContractSpendLimitReachedErrorDetails contractSpendLimitReached)
The organization has reached the spend limit of its contract.
-
visitEnforcedSpendLimitReached
abstract T visitEnforcedSpendLimitReached(EnforcedSpendLimitReachedErrorDetails enforcedSpendLimitReached)
The organization has crossed the monthly API usage threshold of its API tier.
-
visitRampLimitExceeded
abstract T visitRampLimitExceeded(RampLimitExceededErrorDetails rampLimitExceeded)
The request would exceed a ramp limit, which caps how fast usage can grow. Retry after the time in the
retry-afterheader.
-
visitCmekKeyUnreachable
abstract T visitCmekKeyUnreachable(CmekKeyUnreachableErrorDetails cmekKeyUnreachable)
The workspace's customer-managed encryption key could not be reached. Retry the request; if this continues, check that the key is available in your key management service, or contact Anthropic support.
-
visitCompactionUnavailable
abstract T visitCompactionUnavailable(CompactionUnavailableErrorDetails compactionUnavailable)
The compaction could not be completed for a transient server reason. Retry the request.
-
visitStorageQuotaExceeded
abstract T visitStorageQuotaExceeded(StorageQuotaExceededErrorDetails storageQuotaExceeded)
The organization's file storage quota is exhausted. Delete files to free up space, then retry the upload.
-
visitFileNotDownloadable
abstract T visitFileNotDownloadable(FileNotDownloadableErrorDetails fileNotDownloadable)
The file has
downloadable: false. Only files generated by a tool, such as the code execution tool, can be downloaded.
-
visitFileExpired
abstract T visitFileExpired(FileExpiredErrorDetails fileExpired)
The file's
expires_athas passed, so its content is no longer available.
-
visitCmekContextUnavailable
abstract T visitCmekContextUnavailable(CmekContextUnavailableErrorDetails cmekContextUnavailable)
The workspace's encryption settings could not be read, so the request was refused. Retry in a few minutes.
-
visitOrgApiKeyLimitExceeded
abstract T visitOrgApiKeyLimitExceeded(OrgApiKeyLimitExceededErrorDetails orgApiKeyLimitExceeded)
The organization has reached its limit of active API keys.
-
visitWorkspaceApiKeyLimitExceeded
abstract T visitWorkspaceApiKeyLimitExceeded(WorkspaceApiKeyLimitExceededErrorDetails workspaceApiKeyLimitExceeded)
The workspace has reached its limit of active API keys.
-
visitSandboxEgressRestricted
abstract T visitSandboxEgressRestricted(SandboxEgressRestrictedErrorDetails sandboxEgressRestricted)
The request came from a Claude sandbox with restricted network access, which is not allowed to make this change. Send it from outside the sandbox, or from a sandbox with unrestricted network access.
-
visitUserProfileNotFound
abstract T visitUserProfileNotFound(UserProfileNotFoundErrorDetails userProfileNotFound)
The request depends on a user profile that does not exist in the organization or is no longer active. The request either names this user profile by ID, or names a resource, such as an External Key, that is bound to it.
-
visitExternalKeyInWorkspacePolicy
abstract T visitExternalKeyInWorkspacePolicy(ExternalKeyInWorkspacePolicyErrorDetails externalKeyInWorkspacePolicy)
The External Key can't be deleted or reconfigured while the organization's Workspace Policy lists it as an allowed key.
-
visitAlreadyMember
abstract T visitAlreadyMember(AlreadyMemberErrorDetails alreadyMember)
The email address already belongs to a user in the organization. The message names the user.
-
visitCannotInviteEmailsWithUnverifiedDomains
abstract T visitCannotInviteEmailsWithUnverifiedDomains(CannotInviteEmailsWithUnverifiedDomainsErrorDetails cannotInviteEmailsWithUnverifiedDomains)
The email address's domain is not one of the verified domains of the organization's parent organization.
-
visitEmailDomainNotAllowed
abstract T visitEmailDomainNotAllowed(EmailDomainNotAllowedErrorDetails emailDomainNotAllowed)
The organization restricts invites to an allowed list of email domains, and the list is empty or does not include the email address's domain.
-
visitInviteAlreadyExists
abstract T visitInviteAlreadyExists(InviteAlreadyExistsErrorDetails inviteAlreadyExists)
A pending invite already exists for the email address. The message names the invite.
-
visitOrgMemberLimitExceeded
abstract T visitOrgMemberLimitExceeded(OrgMemberLimitExceededErrorDetails orgMemberLimitExceeded)
The organization has reached the member limit that Anthropic set for it. Pending invites count toward the limit.
-
visitRbacGroupGrantsOwnerAccess
abstract T visitRbacGroupGrantsOwnerAccess(RbacGroupGrantsOwnerAccessErrorDetails rbacGroupGrantsOwnerAccess)
A role attached to an RBAC Group in the request grants owner access, so this API does not add members to that group (directly or through an invite), remove its members, or delete it. Make the change in the organization's admin settings in Claude.
-
visitRbacGroupOwnerAccessUnconfirmed
abstract T visitRbacGroupOwnerAccessUnconfirmed(RbacGroupOwnerAccessUnconfirmedErrorDetails rbacGroupOwnerAccessUnconfirmed)
The API could not finish checking whether an RBAC Group in the request grants owner access, so it made no change. Retrying the same request will not help. Make the change in the organization's admin settings in Claude.
-
visitCannotRemoveLastMember
abstract T visitCannotRemoveLastMember(CannotRemoveLastMemberErrorDetails cannotRemoveLastMember)
The user is the organization's only member. Add another member before removing this one.
-
visitConcurrentMembershipChange
abstract T visitConcurrentMembershipChange(ConcurrentMembershipChangeErrorDetails concurrentMembershipChange)
Another change to the organization's members is in progress. Retry the request once it completes.
-
visitExternalKeyValidationFailed
abstract T visitExternalKeyValidationFailed(ExternalKeyValidationFailedErrorDetails externalKeyValidationFailed)
The External Key failed Anthropic's validation, so the request was refused. The message gives the reason, if there is one.
-
visitExternalKeyValidationTimedOut
abstract T visitExternalKeyValidationTimedOut(ExternalKeyValidationTimedOutErrorDetails externalKeyValidationTimedOut)
Anthropic's validation of the External Key did not finish in time, so the request was refused. Wait a moment, then send the request again.
-
visitKeyProfileMismatch
abstract T visitKeyProfileMismatch(KeyProfileMismatchErrorDetails keyProfileMismatch)
After this request, the External Key and the Workspace would not have the same user profile. A key and its Workspace must have the same user profile, or both have none.
-
visitWorkspacePolicyViolation
abstract T visitWorkspacePolicyViolation(WorkspacePolicyViolationErrorDetails workspacePolicyViolation)
The request breaks the organization's Workspace Policy. The message says which rule it broke; an organization admin can see and change the policy in the Console.
-
visitExternalKeyChanged
abstract T visitExternalKeyChanged(ExternalKeyChangedErrorDetails externalKeyChanged)
The external key changed while the request was validating it. Send the request again.
-
visitWorkspaceMemberLimitExceeded
abstract T visitWorkspaceMemberLimitExceeded(WorkspaceMemberLimitExceededErrorDetails workspaceMemberLimitExceeded)
The workspace has reached the member limit that Anthropic set for it.
-
visitOrganizationTypeNotSupported
abstract T visitOrganizationTypeNotSupported(OrganizationTypeNotSupportedErrorDetails organizationTypeNotSupported)
The endpoint does not support the organization's type. Each endpoint's description says which organization types it supports.
-
visitParentOrganizationRequired
abstract T visitParentOrganizationRequired(ParentOrganizationRequiredErrorDetails parentOrganizationRequired)
The endpoint serves only organizations that belong to a parent organization, and this organization belongs to none.
-
visitRbacRoleNotFound
abstract T visitRbacRoleNotFound(RbacRoleNotFoundErrorDetails rbacRoleNotFound)
No RBAC Role with this ID was found.
-
visitEnvironmentCreateDisabled
abstract T visitEnvironmentCreateDisabled(BetaEnvironmentCreateDisabledErrorDetails environmentCreateDisabled)
Anthropic has turned off creating environments for this organization. Existing environments still work.
-
visitEnvironmentArchived
abstract T visitEnvironmentArchived(BetaEnvironmentArchivedErrorDetails environmentArchived)
The environment is archived, so it cannot be updated.
-
visitInvalidConfigTypeChange
abstract T visitInvalidConfigTypeChange(BetaInvalidConfigTypeChangeErrorDetails invalidConfigTypeChange)
config.typediffers from the environment's stored type, which cannot change after creation.
-
visitEnvironmentUpdateDisabled
abstract T visitEnvironmentUpdateDisabled(BetaEnvironmentUpdateDisabledErrorDetails environmentUpdateDisabled)
Anthropic has turned off updating environments for this organization. Existing environments still work as they are.
-
visitHeartbeatPreconditionFailed
abstract T visitHeartbeatPreconditionFailed(BetaHeartbeatPreconditionFailedErrorDetails heartbeatPreconditionFailed)
expected_last_heartbeatdoes not match the stored heartbeat, so another worker may hold the lease.
-
visitInvalidMetadata
abstract T visitInvalidMetadata(BetaInvalidMetadataErrorDetails invalidMetadata)
metadatahas too many keys, a key or value that is too long, or a reserved key. The message names each problem.
-
visitCannotSignOutPrimaryOwner
abstract T visitCannotSignOutPrimaryOwner(BetaCannotSignOutPrimaryOwnerErrorDetails cannotSignOutPrimaryOwner)
The member is the organization's primary owner, whom no API key or token can sign out.
-
visitCannotSignOutSelf
abstract T visitCannotSignOutSelf(BetaCannotSignOutSelfErrorDetails cannotSignOutSelf)
The member is the user the API key or token belongs to.
-
visitOrganizationNotEnrolledInBeta
abstract T visitOrganizationNotEnrolledInBeta(BetaOrganizationNotEnrolledInBetaErrorDetails organizationNotEnrolledInBeta)
The beta that the endpoint requires is not enabled for the organization. The message names the beta value.
-
visitCannotSignOutManagedMember
abstract T visitCannotSignOutManagedMember(BetaCannotSignOutManagedMemberErrorDetails cannotSignOutManagedMember)
The member has the
managedrole, and this API key or token cannot sign them out. The error message says which keys and tokens can.
-
visitCannotSignOutMembershipAdmin
abstract T visitCannotSignOutMembershipAdmin(BetaCannotSignOutMembershipAdminErrorDetails cannotSignOutMembershipAdmin)
The member is a membership admin, and the person the API key or token belongs to is not allowed to sign out membership admins.
-
visitCannotSignOutOwner
abstract T visitCannotSignOutOwner(BetaCannotSignOutOwnerErrorDetails cannotSignOutOwner)
The member is an owner or has owner permissions, and this API key or token cannot sign them out. In a Claude Enterprise organization, an API key with the
write:membersscope can.
-
visitCannotSignOutPrivilegedMember
abstract T visitCannotSignOutPrivilegedMember(BetaCannotSignOutPrivilegedMemberErrorDetails cannotSignOutPrivilegedMember)
This OAuth token cannot sign out a membership admin or a member whose roles grant owner, user management, or identity and access management.
-
visitSpendLimitsAdminApiWritesNotEnabled
abstract T visitSpendLimitsAdminApiWritesNotEnabled(BetaSpendLimitsAdminApiWritesNotEnabledErrorDetails spendLimitsAdminApiWritesNotEnabled)
The organization cannot retrieve, set or delete spend limits with an Admin API credential.
-
visitUnsupportedCharset
abstract T visitUnsupportedCharset(BetaUnsupportedCharsetErrorDetails unsupportedCharset)
The request's
Content-Typeheader names a charset other than UTF-8, ISO-8859-1 or US-ASCII. Send the request with no charset, or with one of these.
-
visitPluginNameTaken
abstract T visitPluginNameTaken(BetaPluginNameTakenErrorDetails pluginNameTaken)
The marketplace already holds this name.
plugin_idis the Plugin that holds it, and can be absent.
-
visitSkillNameTaken
abstract T visitSkillNameTaken(BetaSkillNameTakenErrorDetails skillNameTaken)
One of the Plugin's skills has the name of an organization skill.
skill_nameis that name.
-
visitRegistrationPending
abstract T visitRegistrationPending(BetaRegistrationPendingErrorDetails registrationPending)
The Plugin version was stored but is not yet usable in claude.ai.
plugin_idandplugin_version_ididentify what was stored.
-
visitScanFailed
abstract T visitScanFailed(BetaScanFailedErrorDetails scanFailed)
The version in
plugin_version_iddid not pass its content scan, so it cannot be served.
-
visitScanPending
abstract T visitScanPending(BetaScanPendingErrorDetails scanPending)
The content scan of the version in
plugin_version_idis still running. Retry once the scan finishes.
-
visitSlackChannelSetUpSettingsRefused
abstract T visitSlackChannelSetUpSettingsRefused(BetaSlackChannelSetUpSettingsRefusedErrorDetails slackChannelSetUpSettingsRefused)
The request set the channel up, and
settingswas then refused. The channel stays set up with every setting unset.
-
visitApiKeyScopeMissing
abstract T visitApiKeyScopeMissing(BetaApiKeyScopeMissingErrorDetails apiKeyScopeMissing)
The API key lacks the scope the request needs:
read:claude_tagfor a read,write:claude_tagfor a change.
-
visitClaudeTagWritesNotEnabled
abstract T visitClaudeTagWritesNotEnabled(BetaClaudeTagWritesNotEnabledErrorDetails claudeTagWritesNotEnabled)
Changes through the Claude Tag API are not enabled for the organization.
-
visitComplianceConfigurationRestricted
abstract T visitComplianceConfigurationRestricted(BetaComplianceConfigurationRestrictedErrorDetails complianceConfigurationRestricted)
The organization's compliance configuration does not let Claude Tag store anything new.
-
visitOrganizationLevelScopedApiKeyRequired
abstract T visitOrganizationLevelScopedApiKeyRequired(BetaOrganizationLevelScopedApiKeyRequiredErrorDetails organizationLevelScopedApiKeyRequired)
The credential is not a scoped API key that is bound at the organization level.
-
visitEnvironmentNotFound
abstract T visitEnvironmentNotFound(BetaEnvironmentNotFoundErrorDetails environmentNotFound)
settings.environment_idnames no Environment within the organization's reach.
-
visitSlackChannelSetUpEnvironmentNotFound
abstract T visitSlackChannelSetUpEnvironmentNotFound(BetaSlackChannelSetUpEnvironmentNotFoundErrorDetails slackChannelSetUpEnvironmentNotFound)
settings.environment_idnames no Environment within the organization's reach, and the request had set the channel up by then. The channel stays set up with every setting unset.
-
visitSlackChannelSetUpSettingsConflict
abstract T visitSlackChannelSetUpSettingsConflict(BetaSlackChannelSetUpSettingsConflictErrorDetails slackChannelSetUpSettingsConflict)
The request set the channel up, and something else then changed the channel or removed it. Nothing of
settingswas stored.
-
visitBundleAttachmentNotSupported
abstract T visitBundleAttachmentNotSupported(BetaBundleAttachmentNotSupportedErrorDetails bundleAttachmentNotSupported)
The Bundle has an attachment this API does not support editing, so its instructions can be changed only in claude.ai.
-
visitBundleOnCall
abstract T visitBundleOnCall(BetaBundleOnCallErrorDetails bundleOnCall)
This Bundle's instructions are managed in claude.ai and can't be changed through the API.
-
unknown
T unknown(JsonValue json)
Maps an unknown variant of ErrorDetails to a value of type T.
An instance of ErrorDetails can contain an unknown variant if it was deserialized from data that doesn't match any known variant. For example, if the SDK is on an older version than the API, then the API may respond with new variants that the SDK is unaware of.
-
-
-
-