Class ErrorDetails
-
- All Implemented Interfaces:
public final class ErrorDetails
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public interfaceErrorDetails.VisitorAn interface that defines how to map each variant of ErrorDetails to a value of type T.
public final classErrorDetails.ErrorCode
-
Method Summary
Modifier and Type Method Description final Optional<AvailableToolsLimitExceededErrorDetails>availableToolsLimitExceeded()The tools available after a message exceed a limit on their number or their size. final Optional<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. final Optional<ClaudeCodeVersionTooOldErrorDetails>claudeCodeVersionTooOld()The request comes from a Claude Code version older than the minimum that the requested model or the organization requires. final Optional<CmekKeyDisabledErrorDetails>cmekKeyDisabled()The workspace's customer-managed encryption key is disabled or revoked. final Optional<CmekKeyNetworkBlockedErrorDetails>cmekKeyNetworkBlocked()The key management service's network access controls blocked the request to the workspace's customer-managed encryption key. final Optional<CompactionBlockAmbiguousErrorDetails>compactionBlockAmbiguous()messagesholds more than onecompactionblock with content.final Optional<CompactionBlockMisplacedErrorDetails>compactionBlockMisplaced()The compactionblock is not the first block of the conversation, or is in asystemmessage.final Optional<CompactionContentMismatchErrorDetails>compactionContentMismatch()The compactionblock'scontentdiffers from the text itssignaturerecorded.final Optional<CompactionIncompleteTurnErrorDetails>compactionIncompleteTurn()The compaction request ends on an assistantturn that is not finished.final Optional<CompactionNothingToSummarizeErrorDetails>compactionNothingToSummarize()messagesholds nouserorassistantcontent to summarize or adopt.final Optional<CompactionSignatureInvalidErrorDetails>compactionSignatureInvalid()The compactionblock'ssignaturedoes not verify.final Optional<CompactionTooManyToolReferencesErrorDetails>compactionTooManyToolReferences()The conversation references more distinct tools than a compactionblock can record.final Optional<CompactionToolChangesMismatchErrorDetails>compactionToolChangesMismatch()The compactionblock'stool_changesdiffers from what was returned with the block.final Optional<OrganizationOnHoldErrorDetails>organizationOnHold()Anthropic has disabled the organization for trust and safety reasons. final Optional<RequestBodyEncodingInvalidErrorDetails>requestBodyEncodingInvalid()The request body is not valid for its Content-Encoding.final Optional<RequestBodyEncodingUnsupportedErrorDetails>requestBodyEncodingUnsupported()The request's Content-Encodingis not supported.final Optional<ThreadAlreadyContinuedErrorDetails>threadAlreadyContinued()The response that previous_message_idnames has already been continued, and each response can be continued only once.final Optional<ThreadContinueInFlightErrorDetails>threadContinueInFlight()Another request is still continuing from the same previous_message_id.final Optional<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. final Optional<ThreadUnsupportedRequestErrorDetails>threadUnsupportedRequest()The request combines threadwith a request field or an organization setting that Threads do not support;unsupported, when present, names it.final Optional<ToolNameConflictErrorDetails>toolNameConflict()A tool made available in messagestakes a name that an available tool of another kind, or of another MCP server, already holds.final Optional<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. final Optional<UserProfileRequiredErrorDetails>userProfileRequired()The request sets billing_policy.bill_toto"user_profile"but names no user profile.final Optional<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. final Optional<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. final Optional<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. final Optional<UserProfileNotBillableErrorDetails>userProfileNotBillable()The caller is not allowed to bill the user profile that the request names. final Optional<ThreadNotFoundErrorDetails>threadNotFound()No usable Thread state was found for previous_message_id.final Optional<SkillReadBlockedUndecryptableErrorDetails>skillReadBlockedUndecryptable()A custom skill the request names is stored under an encryption key state the workspace cannot currently decrypt. final Optional<RequestBodyTooLargeAfterDecodingErrorDetails>requestBodyTooLargeAfterDecoding()The compressed request body exceeds the request size limit once decoded. final Optional<ContractSpendLimitReachedErrorDetails>contractSpendLimitReached()The organization has reached the spend limit of its contract. final Optional<EnforcedSpendLimitReachedErrorDetails>enforcedSpendLimitReached()The organization has crossed the monthly API usage threshold of its API tier. final Optional<RampLimitExceededErrorDetails>rampLimitExceeded()The request would exceed a ramp limit, which caps how fast usage can grow. final Optional<CmekKeyUnreachableErrorDetails>cmekKeyUnreachable()The workspace's customer-managed encryption key could not be reached. final Optional<CompactionUnavailableErrorDetails>compactionUnavailable()The compaction could not be completed for a transient server reason. final Optional<StorageQuotaExceededErrorDetails>storageQuotaExceeded()The organization's file storage quota is exhausted. final Optional<FileNotDownloadableErrorDetails>fileNotDownloadable()The file has downloadable: false.final Optional<FileExpiredErrorDetails>fileExpired()The file's expires_athas passed, so its content is no longer available.final Optional<CmekContextUnavailableErrorDetails>cmekContextUnavailable()The workspace's encryption settings could not be read, so the request was refused. final Optional<OrgApiKeyLimitExceededErrorDetails>orgApiKeyLimitExceeded()The organization has reached its limit of active API keys. final Optional<WorkspaceApiKeyLimitExceededErrorDetails>workspaceApiKeyLimitExceeded()The workspace has reached its limit of active API keys. final Optional<SandboxEgressRestrictedErrorDetails>sandboxEgressRestricted()The request came from a Claude sandbox with restricted network access, which is not allowed to make this change. final Optional<UserProfileNotFoundErrorDetails>userProfileNotFound()The request depends on a user profile that does not exist in the organization or is no longer active. final Optional<ExternalKeyInWorkspacePolicyErrorDetails>externalKeyInWorkspacePolicy()The External Key can't be deleted or reconfigured while the organization's Workspace Policy lists it as an allowed key. final Optional<AlreadyMemberErrorDetails>alreadyMember()The email address already belongs to a user in the organization. final Optional<CannotInviteEmailsWithUnverifiedDomainsErrorDetails>cannotInviteEmailsWithUnverifiedDomains()The email address's domain is not one of the verified domains of the organization's parent organization. final Optional<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. final Optional<InviteAlreadyExistsErrorDetails>inviteAlreadyExists()A pending invite already exists for the email address. final Optional<OrgMemberLimitExceededErrorDetails>orgMemberLimitExceeded()The organization has reached the member limit that Anthropic set for it. final Optional<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. final Optional<RbacGroupOwnerAccessUnconfirmedErrorDetails>rbacGroupOwnerAccessUnconfirmed()The API could not finish checking whether an RBAC Group in the request grants owner access, so it made no change. final Optional<CannotRemoveLastMemberErrorDetails>cannotRemoveLastMember()The user is the organization's only member. final Optional<ConcurrentMembershipChangeErrorDetails>concurrentMembershipChange()Another change to the organization's members is in progress. final Optional<ExternalKeyValidationFailedErrorDetails>externalKeyValidationFailed()The External Key failed Anthropic's validation, so the request was refused. final Optional<ExternalKeyValidationTimedOutErrorDetails>externalKeyValidationTimedOut()Anthropic's validation of the External Key did not finish in time, so the request was refused. final Optional<KeyProfileMismatchErrorDetails>keyProfileMismatch()After this request, the External Key and the Workspace would not have the same user profile. final Optional<WorkspacePolicyViolationErrorDetails>workspacePolicyViolation()The request breaks the organization's Workspace Policy. final Optional<ExternalKeyChangedErrorDetails>externalKeyChanged()The external key changed while the request was validating it. final Optional<WorkspaceMemberLimitExceededErrorDetails>workspaceMemberLimitExceeded()The workspace has reached the member limit that Anthropic set for it. final Optional<OrganizationTypeNotSupportedErrorDetails>organizationTypeNotSupported()The endpoint does not support the organization's type. final Optional<ParentOrganizationRequiredErrorDetails>parentOrganizationRequired()The endpoint serves only organizations that belong to a parent organization, and this organization belongs to none. final Optional<RbacRoleNotFoundErrorDetails>rbacRoleNotFound()No RBAC Role with this ID was found. final Optional<BetaEnvironmentCreateDisabledErrorDetails>environmentCreateDisabled()Anthropic has turned off creating environments for this organization. final Optional<BetaEnvironmentArchivedErrorDetails>environmentArchived()The environment is archived, so it cannot be updated. final Optional<BetaInvalidConfigTypeChangeErrorDetails>invalidConfigTypeChange()config.typediffers from the environment's stored type, which cannot change after creation.final Optional<BetaEnvironmentUpdateDisabledErrorDetails>environmentUpdateDisabled()Anthropic has turned off updating environments for this organization. final Optional<BetaHeartbeatPreconditionFailedErrorDetails>heartbeatPreconditionFailed()expected_last_heartbeatdoes not match the stored heartbeat, so another worker may hold the lease.final Optional<BetaInvalidMetadataErrorDetails>invalidMetadata()metadatahas too many keys, a key or value that is too long, or a reserved key.final Optional<BetaCannotSignOutPrimaryOwnerErrorDetails>cannotSignOutPrimaryOwner()The member is the organization's primary owner, whom no API key or token can sign out. final Optional<BetaCannotSignOutSelfErrorDetails>cannotSignOutSelf()The member is the user the API key or token belongs to. final Optional<BetaOrganizationNotEnrolledInBetaErrorDetails>organizationNotEnrolledInBeta()The beta that the endpoint requires is not enabled for the organization. final Optional<BetaCannotSignOutManagedMemberErrorDetails>cannotSignOutManagedMember()The member has the managedrole, and this API key or token cannot sign them out.final Optional<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. final Optional<BetaCannotSignOutOwnerErrorDetails>cannotSignOutOwner()The member is an owner or has owner permissions, and this API key or token cannot sign them out. final Optional<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. final Optional<BetaSpendLimitsAdminApiWritesNotEnabledErrorDetails>spendLimitsAdminApiWritesNotEnabled()The organization cannot retrieve, set or delete spend limits with an Admin API credential. final Optional<BetaUnsupportedCharsetErrorDetails>unsupportedCharset()The request's Content-Typeheader names a charset other than UTF-8, ISO-8859-1 or US-ASCII.final Optional<BetaPluginNameTakenErrorDetails>pluginNameTaken()The marketplace already holds this name. final Optional<BetaSkillNameTakenErrorDetails>skillNameTaken()One of the Plugin's skills has the name of an organization skill. final Optional<BetaRegistrationPendingErrorDetails>registrationPending()The Plugin version was stored but is not yet usable in claude.ai. final Optional<BetaScanFailedErrorDetails>scanFailed()The version in plugin_version_iddid not pass its content scan, so it cannot be served.final Optional<BetaScanPendingErrorDetails>scanPending()The content scan of the version in plugin_version_idis still running.final Optional<BetaSlackChannelSetUpSettingsRefusedErrorDetails>slackChannelSetUpSettingsRefused()The request set the channel up, and settingswas then refused.final Optional<BetaApiKeyScopeMissingErrorDetails>apiKeyScopeMissing()The API key lacks the scope the request needs: read:claude_tagfor a read,write:claude_tagfor a change.final Optional<BetaClaudeTagWritesNotEnabledErrorDetails>claudeTagWritesNotEnabled()Changes through the Claude Tag API are not enabled for the organization. final Optional<BetaComplianceConfigurationRestrictedErrorDetails>complianceConfigurationRestricted()The organization's compliance configuration does not let Claude Tag store anything new. final Optional<BetaOrganizationLevelScopedApiKeyRequiredErrorDetails>organizationLevelScopedApiKeyRequired()The credential is not a scoped API key that is bound at the organization level. final Optional<BetaEnvironmentNotFoundErrorDetails>environmentNotFound()settings.environment_idnames no Environment within the organization's reach.final Optional<BetaSlackChannelSetUpEnvironmentNotFoundErrorDetails>slackChannelSetUpEnvironmentNotFound()settings.environment_idnames no Environment within the organization's reach, and the request had set the channel up by then.final Optional<BetaSlackChannelSetUpSettingsConflictErrorDetails>slackChannelSetUpSettingsConflict()The request set the channel up, and something else then changed the channel or removed it. final Optional<BetaBundleAttachmentNotSupportedErrorDetails>bundleAttachmentNotSupported()The Bundle has an attachment this API does not support editing, so its instructions can be changed only in claude.ai. final Optional<BetaBundleOnCallErrorDetails>bundleOnCall()This Bundle's instructions are managed in claude.ai and can't be changed through the API. final Optional<JsonValue>_json()final ErrorDetails.ErrorCodeerrorCode()final Optional<String>pluginId()final Optional<String>pluginVersionId()final Optional<String>slackChannelId()final BooleanisAvailableToolsLimitExceeded()final BooleanisClaudeCodeKeyCreatorNotMember()final BooleanisClaudeCodeVersionTooOld()final BooleanisCmekKeyDisabled()final BooleanisCmekKeyNetworkBlocked()final BooleanisCompactionBlockAmbiguous()final BooleanisCompactionBlockMisplaced()final BooleanisCompactionContentMismatch()final BooleanisCompactionIncompleteTurn()final BooleanisCompactionNothingToSummarize()final BooleanisCompactionSignatureInvalid()final BooleanisCompactionTooManyToolReferences()final BooleanisCompactionToolChangesMismatch()final BooleanisOrganizationOnHold()final BooleanisRequestBodyEncodingInvalid()final BooleanisRequestBodyEncodingUnsupported()final BooleanisThreadAlreadyContinued()final BooleanisThreadContinueInFlight()final BooleanisThreadFingerprintMismatch()final BooleanisThreadUnsupportedRequest()final BooleanisToolNameConflict()final BooleanisToolReferenceUnresolved()final BooleanisUserProfileRequired()final BooleanisLinkedOrganizationBillingUnavailable()final BooleanisLinkedOrganizationSpendLimitReached()final BooleanisUserProfileBillingNotAuthorized()final BooleanisUserProfileNotBillable()final BooleanisThreadNotFound()final BooleanisSkillReadBlockedUndecryptable()final BooleanisRequestBodyTooLargeAfterDecoding()final BooleanisContractSpendLimitReached()final BooleanisEnforcedSpendLimitReached()final BooleanisRampLimitExceeded()final BooleanisCmekKeyUnreachable()final BooleanisCompactionUnavailable()final BooleanisStorageQuotaExceeded()final BooleanisFileNotDownloadable()final BooleanisFileExpired()final BooleanisCmekContextUnavailable()final BooleanisOrgApiKeyLimitExceeded()final BooleanisWorkspaceApiKeyLimitExceeded()final BooleanisSandboxEgressRestricted()final BooleanisUserProfileNotFound()final BooleanisExternalKeyInWorkspacePolicy()final BooleanisAlreadyMember()final BooleanisCannotInviteEmailsWithUnverifiedDomains()final BooleanisEmailDomainNotAllowed()final BooleanisInviteAlreadyExists()final BooleanisOrgMemberLimitExceeded()final BooleanisRbacGroupGrantsOwnerAccess()final BooleanisRbacGroupOwnerAccessUnconfirmed()final BooleanisCannotRemoveLastMember()final BooleanisConcurrentMembershipChange()final BooleanisExternalKeyValidationFailed()final BooleanisExternalKeyValidationTimedOut()final BooleanisKeyProfileMismatch()final BooleanisWorkspacePolicyViolation()final BooleanisExternalKeyChanged()final BooleanisWorkspaceMemberLimitExceeded()final BooleanisOrganizationTypeNotSupported()final BooleanisParentOrganizationRequired()final BooleanisRbacRoleNotFound()final BooleanisEnvironmentCreateDisabled()final BooleanisEnvironmentArchived()final BooleanisInvalidConfigTypeChange()final BooleanisEnvironmentUpdateDisabled()final BooleanisHeartbeatPreconditionFailed()final BooleanisInvalidMetadata()final BooleanisCannotSignOutPrimaryOwner()final BooleanisCannotSignOutSelf()final BooleanisOrganizationNotEnrolledInBeta()final BooleanisCannotSignOutManagedMember()final BooleanisCannotSignOutMembershipAdmin()final BooleanisCannotSignOutOwner()final BooleanisCannotSignOutPrivilegedMember()final BooleanisSpendLimitsAdminApiWritesNotEnabled()final BooleanisUnsupportedCharset()final BooleanisPluginNameTaken()final BooleanisSkillNameTaken()final BooleanisRegistrationPending()final BooleanisScanFailed()final BooleanisScanPending()final BooleanisSlackChannelSetUpSettingsRefused()final BooleanisApiKeyScopeMissing()final BooleanisClaudeTagWritesNotEnabled()final BooleanisComplianceConfigurationRestricted()final BooleanisOrganizationLevelScopedApiKeyRequired()final BooleanisEnvironmentNotFound()final BooleanisSlackChannelSetUpEnvironmentNotFound()final BooleanisSlackChannelSetUpSettingsConflict()final BooleanisBundleAttachmentNotSupported()final BooleanisBundleOnCall()final AvailableToolsLimitExceededErrorDetailsasAvailableToolsLimitExceeded()The tools available after a message exceed a limit on their number or their size. final ClaudeCodeKeyCreatorNotMemberErrorDetailsasClaudeCodeKeyCreatorNotMember()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. final ClaudeCodeVersionTooOldErrorDetailsasClaudeCodeVersionTooOld()The request comes from a Claude Code version older than the minimum that the requested model or the organization requires. final CmekKeyDisabledErrorDetailsasCmekKeyDisabled()The workspace's customer-managed encryption key is disabled or revoked. final CmekKeyNetworkBlockedErrorDetailsasCmekKeyNetworkBlocked()The key management service's network access controls blocked the request to the workspace's customer-managed encryption key. final CompactionBlockAmbiguousErrorDetailsasCompactionBlockAmbiguous()messagesholds more than onecompactionblock with content.final CompactionBlockMisplacedErrorDetailsasCompactionBlockMisplaced()The compactionblock is not the first block of the conversation, or is in asystemmessage.final CompactionContentMismatchErrorDetailsasCompactionContentMismatch()The compactionblock'scontentdiffers from the text itssignaturerecorded.final CompactionIncompleteTurnErrorDetailsasCompactionIncompleteTurn()The compaction request ends on an assistantturn that is not finished.final CompactionNothingToSummarizeErrorDetailsasCompactionNothingToSummarize()messagesholds nouserorassistantcontent to summarize or adopt.final CompactionSignatureInvalidErrorDetailsasCompactionSignatureInvalid()The compactionblock'ssignaturedoes not verify.final CompactionTooManyToolReferencesErrorDetailsasCompactionTooManyToolReferences()The conversation references more distinct tools than a compactionblock can record.final CompactionToolChangesMismatchErrorDetailsasCompactionToolChangesMismatch()The compactionblock'stool_changesdiffers from what was returned with the block.final OrganizationOnHoldErrorDetailsasOrganizationOnHold()Anthropic has disabled the organization for trust and safety reasons. final RequestBodyEncodingInvalidErrorDetailsasRequestBodyEncodingInvalid()The request body is not valid for its Content-Encoding.final RequestBodyEncodingUnsupportedErrorDetailsasRequestBodyEncodingUnsupported()The request's Content-Encodingis not supported.final ThreadAlreadyContinuedErrorDetailsasThreadAlreadyContinued()The response that previous_message_idnames has already been continued, and each response can be continued only once.final ThreadContinueInFlightErrorDetailsasThreadContinueInFlight()Another request is still continuing from the same previous_message_id.final ThreadFingerprintMismatchErrorDetailsasThreadFingerprintMismatch()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. final ThreadUnsupportedRequestErrorDetailsasThreadUnsupportedRequest()The request combines threadwith a request field or an organization setting that Threads do not support;unsupported, when present, names it.final ToolNameConflictErrorDetailsasToolNameConflict()A tool made available in messagestakes a name that an available tool of another kind, or of another MCP server, already holds.final ToolReferenceUnresolvedErrorDetailsasToolReferenceUnresolved()A tool change or MCP tool listing references a tool or MCP server that is not defined at that position in the conversation. final UserProfileRequiredErrorDetailsasUserProfileRequired()The request sets billing_policy.bill_toto"user_profile"but names no user profile.final LinkedOrganizationBillingUnavailableErrorDetailsasLinkedOrganizationBillingUnavailable()Anthropic cannot currently bill the organization linked to the request's user profile, for a reason that lies with that organization's own account. final LinkedOrganizationSpendLimitReachedErrorDetailsasLinkedOrganizationSpendLimitReached()The organization linked to the request's user profile has reached a spend limit that it set, or lacks credit for the request. final UserProfileBillingNotAuthorizedErrorDetailsasUserProfileBillingNotAuthorized()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. final UserProfileNotBillableErrorDetailsasUserProfileNotBillable()The caller is not allowed to bill the user profile that the request names. final ThreadNotFoundErrorDetailsasThreadNotFound()No usable Thread state was found for previous_message_id.final SkillReadBlockedUndecryptableErrorDetailsasSkillReadBlockedUndecryptable()A custom skill the request names is stored under an encryption key state the workspace cannot currently decrypt. final RequestBodyTooLargeAfterDecodingErrorDetailsasRequestBodyTooLargeAfterDecoding()The compressed request body exceeds the request size limit once decoded. final ContractSpendLimitReachedErrorDetailsasContractSpendLimitReached()The organization has reached the spend limit of its contract. final EnforcedSpendLimitReachedErrorDetailsasEnforcedSpendLimitReached()The organization has crossed the monthly API usage threshold of its API tier. final RampLimitExceededErrorDetailsasRampLimitExceeded()The request would exceed a ramp limit, which caps how fast usage can grow. final CmekKeyUnreachableErrorDetailsasCmekKeyUnreachable()The workspace's customer-managed encryption key could not be reached. final CompactionUnavailableErrorDetailsasCompactionUnavailable()The compaction could not be completed for a transient server reason. final StorageQuotaExceededErrorDetailsasStorageQuotaExceeded()The organization's file storage quota is exhausted. final FileNotDownloadableErrorDetailsasFileNotDownloadable()The file has downloadable: false.final FileExpiredErrorDetailsasFileExpired()The file's expires_athas passed, so its content is no longer available.final CmekContextUnavailableErrorDetailsasCmekContextUnavailable()The workspace's encryption settings could not be read, so the request was refused. final OrgApiKeyLimitExceededErrorDetailsasOrgApiKeyLimitExceeded()The organization has reached its limit of active API keys. final WorkspaceApiKeyLimitExceededErrorDetailsasWorkspaceApiKeyLimitExceeded()The workspace has reached its limit of active API keys. final SandboxEgressRestrictedErrorDetailsasSandboxEgressRestricted()The request came from a Claude sandbox with restricted network access, which is not allowed to make this change. final UserProfileNotFoundErrorDetailsasUserProfileNotFound()The request depends on a user profile that does not exist in the organization or is no longer active. final ExternalKeyInWorkspacePolicyErrorDetailsasExternalKeyInWorkspacePolicy()The External Key can't be deleted or reconfigured while the organization's Workspace Policy lists it as an allowed key. final AlreadyMemberErrorDetailsasAlreadyMember()The email address already belongs to a user in the organization. final CannotInviteEmailsWithUnverifiedDomainsErrorDetailsasCannotInviteEmailsWithUnverifiedDomains()The email address's domain is not one of the verified domains of the organization's parent organization. final EmailDomainNotAllowedErrorDetailsasEmailDomainNotAllowed()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. final InviteAlreadyExistsErrorDetailsasInviteAlreadyExists()A pending invite already exists for the email address. final OrgMemberLimitExceededErrorDetailsasOrgMemberLimitExceeded()The organization has reached the member limit that Anthropic set for it. final RbacGroupGrantsOwnerAccessErrorDetailsasRbacGroupGrantsOwnerAccess()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. final RbacGroupOwnerAccessUnconfirmedErrorDetailsasRbacGroupOwnerAccessUnconfirmed()The API could not finish checking whether an RBAC Group in the request grants owner access, so it made no change. final CannotRemoveLastMemberErrorDetailsasCannotRemoveLastMember()The user is the organization's only member. final ConcurrentMembershipChangeErrorDetailsasConcurrentMembershipChange()Another change to the organization's members is in progress. final ExternalKeyValidationFailedErrorDetailsasExternalKeyValidationFailed()The External Key failed Anthropic's validation, so the request was refused. final ExternalKeyValidationTimedOutErrorDetailsasExternalKeyValidationTimedOut()Anthropic's validation of the External Key did not finish in time, so the request was refused. final KeyProfileMismatchErrorDetailsasKeyProfileMismatch()After this request, the External Key and the Workspace would not have the same user profile. final WorkspacePolicyViolationErrorDetailsasWorkspacePolicyViolation()The request breaks the organization's Workspace Policy. final ExternalKeyChangedErrorDetailsasExternalKeyChanged()The external key changed while the request was validating it. final WorkspaceMemberLimitExceededErrorDetailsasWorkspaceMemberLimitExceeded()The workspace has reached the member limit that Anthropic set for it. final OrganizationTypeNotSupportedErrorDetailsasOrganizationTypeNotSupported()The endpoint does not support the organization's type. final ParentOrganizationRequiredErrorDetailsasParentOrganizationRequired()The endpoint serves only organizations that belong to a parent organization, and this organization belongs to none. final RbacRoleNotFoundErrorDetailsasRbacRoleNotFound()No RBAC Role with this ID was found. final BetaEnvironmentCreateDisabledErrorDetailsasEnvironmentCreateDisabled()Anthropic has turned off creating environments for this organization. final BetaEnvironmentArchivedErrorDetailsasEnvironmentArchived()The environment is archived, so it cannot be updated. final BetaInvalidConfigTypeChangeErrorDetailsasInvalidConfigTypeChange()config.typediffers from the environment's stored type, which cannot change after creation.final BetaEnvironmentUpdateDisabledErrorDetailsasEnvironmentUpdateDisabled()Anthropic has turned off updating environments for this organization. final BetaHeartbeatPreconditionFailedErrorDetailsasHeartbeatPreconditionFailed()expected_last_heartbeatdoes not match the stored heartbeat, so another worker may hold the lease.final BetaInvalidMetadataErrorDetailsasInvalidMetadata()metadatahas too many keys, a key or value that is too long, or a reserved key.final BetaCannotSignOutPrimaryOwnerErrorDetailsasCannotSignOutPrimaryOwner()The member is the organization's primary owner, whom no API key or token can sign out. final BetaCannotSignOutSelfErrorDetailsasCannotSignOutSelf()The member is the user the API key or token belongs to. final BetaOrganizationNotEnrolledInBetaErrorDetailsasOrganizationNotEnrolledInBeta()The beta that the endpoint requires is not enabled for the organization. final BetaCannotSignOutManagedMemberErrorDetailsasCannotSignOutManagedMember()The member has the managedrole, and this API key or token cannot sign them out.final BetaCannotSignOutMembershipAdminErrorDetailsasCannotSignOutMembershipAdmin()The member is a membership admin, and the person the API key or token belongs to is not allowed to sign out membership admins. final BetaCannotSignOutOwnerErrorDetailsasCannotSignOutOwner()The member is an owner or has owner permissions, and this API key or token cannot sign them out. final BetaCannotSignOutPrivilegedMemberErrorDetailsasCannotSignOutPrivilegedMember()This OAuth token cannot sign out a membership admin or a member whose roles grant owner, user management, or identity and access management. final BetaSpendLimitsAdminApiWritesNotEnabledErrorDetailsasSpendLimitsAdminApiWritesNotEnabled()The organization cannot retrieve, set or delete spend limits with an Admin API credential. final BetaUnsupportedCharsetErrorDetailsasUnsupportedCharset()The request's Content-Typeheader names a charset other than UTF-8, ISO-8859-1 or US-ASCII.final BetaPluginNameTakenErrorDetailsasPluginNameTaken()The marketplace already holds this name. final BetaSkillNameTakenErrorDetailsasSkillNameTaken()One of the Plugin's skills has the name of an organization skill. final BetaRegistrationPendingErrorDetailsasRegistrationPending()The Plugin version was stored but is not yet usable in claude.ai. final BetaScanFailedErrorDetailsasScanFailed()The version in plugin_version_iddid not pass its content scan, so it cannot be served.final BetaScanPendingErrorDetailsasScanPending()The content scan of the version in plugin_version_idis still running.final BetaSlackChannelSetUpSettingsRefusedErrorDetailsasSlackChannelSetUpSettingsRefused()The request set the channel up, and settingswas then refused.final BetaApiKeyScopeMissingErrorDetailsasApiKeyScopeMissing()The API key lacks the scope the request needs: read:claude_tagfor a read,write:claude_tagfor a change.final BetaClaudeTagWritesNotEnabledErrorDetailsasClaudeTagWritesNotEnabled()Changes through the Claude Tag API are not enabled for the organization. final BetaComplianceConfigurationRestrictedErrorDetailsasComplianceConfigurationRestricted()The organization's compliance configuration does not let Claude Tag store anything new. final BetaOrganizationLevelScopedApiKeyRequiredErrorDetailsasOrganizationLevelScopedApiKeyRequired()The credential is not a scoped API key that is bound at the organization level. final BetaEnvironmentNotFoundErrorDetailsasEnvironmentNotFound()settings.environment_idnames no Environment within the organization's reach.final BetaSlackChannelSetUpEnvironmentNotFoundErrorDetailsasSlackChannelSetUpEnvironmentNotFound()settings.environment_idnames no Environment within the organization's reach, and the request had set the channel up by then.final BetaSlackChannelSetUpSettingsConflictErrorDetailsasSlackChannelSetUpSettingsConflict()The request set the channel up, and something else then changed the channel or removed it. final BetaBundleAttachmentNotSupportedErrorDetailsasBundleAttachmentNotSupported()The Bundle has an attachment this API does not support editing, so its instructions can be changed only in claude.ai. final BetaBundleOnCallErrorDetailsasBundleOnCall()This Bundle's instructions are managed in claude.ai and can't be changed through the API. final <T extends Any> Taccept(ErrorDetails.Visitor<T> visitor)Maps this instance's current variant to a value of type T using the given visitor. final ErrorDetailsvalidate()Validates that the types of all values in this object match their expected types recursively. final BooleanisValid()Booleanequals(Object other)IntegerhashCode()StringtoString()final static ErrorDetailsofAvailableToolsLimitExceeded(AvailableToolsLimitExceededErrorDetails availableToolsLimitExceeded)The tools available after a message exceed a limit on their number or their size. final static ErrorDetailsofClaudeCodeKeyCreatorNotMember(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. final static ErrorDetailsofClaudeCodeVersionTooOld(ClaudeCodeVersionTooOldErrorDetails claudeCodeVersionTooOld)The request comes from a Claude Code version older than the minimum that the requested model or the organization requires. final static ErrorDetailsofCmekKeyDisabled(CmekKeyDisabledErrorDetails cmekKeyDisabled)The workspace's customer-managed encryption key is disabled or revoked. final static ErrorDetailsofCmekKeyNetworkBlocked(CmekKeyNetworkBlockedErrorDetails cmekKeyNetworkBlocked)The key management service's network access controls blocked the request to the workspace's customer-managed encryption key. final static ErrorDetailsofCompactionBlockAmbiguous(CompactionBlockAmbiguousErrorDetails compactionBlockAmbiguous)messagesholds more than onecompactionblock with content.final static ErrorDetailsofCompactionBlockMisplaced(CompactionBlockMisplacedErrorDetails compactionBlockMisplaced)The compactionblock is not the first block of the conversation, or is in asystemmessage.final static ErrorDetailsofCompactionContentMismatch(CompactionContentMismatchErrorDetails compactionContentMismatch)The compactionblock'scontentdiffers from the text itssignaturerecorded.final static ErrorDetailsofCompactionIncompleteTurn(CompactionIncompleteTurnErrorDetails compactionIncompleteTurn)The compaction request ends on an assistantturn that is not finished.final static ErrorDetailsofCompactionNothingToSummarize(CompactionNothingToSummarizeErrorDetails compactionNothingToSummarize)messagesholds nouserorassistantcontent to summarize or adopt.final static ErrorDetailsofCompactionSignatureInvalid(CompactionSignatureInvalidErrorDetails compactionSignatureInvalid)The compactionblock'ssignaturedoes not verify.final static ErrorDetailsofCompactionTooManyToolReferences(CompactionTooManyToolReferencesErrorDetails compactionTooManyToolReferences)The conversation references more distinct tools than a compactionblock can record.final static ErrorDetailsofCompactionToolChangesMismatch(CompactionToolChangesMismatchErrorDetails compactionToolChangesMismatch)The compactionblock'stool_changesdiffers from what was returned with the block.final static ErrorDetailsofOrganizationOnHold(OrganizationOnHoldErrorDetails organizationOnHold)Anthropic has disabled the organization for trust and safety reasons. final static ErrorDetailsofRequestBodyEncodingInvalid(RequestBodyEncodingInvalidErrorDetails requestBodyEncodingInvalid)The request body is not valid for its Content-Encoding.final static ErrorDetailsofRequestBodyEncodingUnsupported(RequestBodyEncodingUnsupportedErrorDetails requestBodyEncodingUnsupported)The request's Content-Encodingis not supported.final static ErrorDetailsofThreadAlreadyContinued(ThreadAlreadyContinuedErrorDetails threadAlreadyContinued)The response that previous_message_idnames has already been continued, and each response can be continued only once.final static ErrorDetailsofThreadContinueInFlight(ThreadContinueInFlightErrorDetails threadContinueInFlight)Another request is still continuing from the same previous_message_id.final static ErrorDetailsofThreadFingerprintMismatch(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. final static ErrorDetailsofThreadUnsupportedRequest(ThreadUnsupportedRequestErrorDetails threadUnsupportedRequest)The request combines threadwith a request field or an organization setting that Threads do not support;unsupported, when present, names it.final static ErrorDetailsofToolNameConflict(ToolNameConflictErrorDetails toolNameConflict)A tool made available in messagestakes a name that an available tool of another kind, or of another MCP server, already holds.final static ErrorDetailsofToolReferenceUnresolved(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. final static ErrorDetailsofUserProfileRequired(UserProfileRequiredErrorDetails userProfileRequired)The request sets billing_policy.bill_toto"user_profile"but names no user profile.final static ErrorDetailsofLinkedOrganizationBillingUnavailable(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. final static ErrorDetailsofLinkedOrganizationSpendLimitReached(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. final static ErrorDetailsofUserProfileBillingNotAuthorized(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. final static ErrorDetailsofUserProfileNotBillable(UserProfileNotBillableErrorDetails userProfileNotBillable)The caller is not allowed to bill the user profile that the request names. final static ErrorDetailsofThreadNotFound(ThreadNotFoundErrorDetails threadNotFound)No usable Thread state was found for previous_message_id.final static ErrorDetailsofSkillReadBlockedUndecryptable(SkillReadBlockedUndecryptableErrorDetails skillReadBlockedUndecryptable)A custom skill the request names is stored under an encryption key state the workspace cannot currently decrypt. final static ErrorDetailsofRequestBodyTooLargeAfterDecoding(RequestBodyTooLargeAfterDecodingErrorDetails requestBodyTooLargeAfterDecoding)The compressed request body exceeds the request size limit once decoded. final static ErrorDetailsofContractSpendLimitReached(ContractSpendLimitReachedErrorDetails contractSpendLimitReached)The organization has reached the spend limit of its contract. final static ErrorDetailsofEnforcedSpendLimitReached(EnforcedSpendLimitReachedErrorDetails enforcedSpendLimitReached)The organization has crossed the monthly API usage threshold of its API tier. final static ErrorDetailsofRampLimitExceeded(RampLimitExceededErrorDetails rampLimitExceeded)The request would exceed a ramp limit, which caps how fast usage can grow. final static ErrorDetailsofCmekKeyUnreachable(CmekKeyUnreachableErrorDetails cmekKeyUnreachable)The workspace's customer-managed encryption key could not be reached. final static ErrorDetailsofCompactionUnavailable(CompactionUnavailableErrorDetails compactionUnavailable)The compaction could not be completed for a transient server reason. final static ErrorDetailsofStorageQuotaExceeded(StorageQuotaExceededErrorDetails storageQuotaExceeded)The organization's file storage quota is exhausted. final static ErrorDetailsofFileNotDownloadable(FileNotDownloadableErrorDetails fileNotDownloadable)The file has downloadable: false.final static ErrorDetailsofFileExpired(FileExpiredErrorDetails fileExpired)The file's expires_athas passed, so its content is no longer available.final static ErrorDetailsofCmekContextUnavailable(CmekContextUnavailableErrorDetails cmekContextUnavailable)The workspace's encryption settings could not be read, so the request was refused. final static ErrorDetailsofOrgApiKeyLimitExceeded(OrgApiKeyLimitExceededErrorDetails orgApiKeyLimitExceeded)The organization has reached its limit of active API keys. final static ErrorDetailsofWorkspaceApiKeyLimitExceeded(WorkspaceApiKeyLimitExceededErrorDetails workspaceApiKeyLimitExceeded)The workspace has reached its limit of active API keys. final static ErrorDetailsofSandboxEgressRestricted(SandboxEgressRestrictedErrorDetails sandboxEgressRestricted)The request came from a Claude sandbox with restricted network access, which is not allowed to make this change. final static ErrorDetailsofUserProfileNotFound(UserProfileNotFoundErrorDetails userProfileNotFound)The request depends on a user profile that does not exist in the organization or is no longer active. final static ErrorDetailsofExternalKeyInWorkspacePolicy(ExternalKeyInWorkspacePolicyErrorDetails externalKeyInWorkspacePolicy)The External Key can't be deleted or reconfigured while the organization's Workspace Policy lists it as an allowed key. final static ErrorDetailsofAlreadyMember(AlreadyMemberErrorDetails alreadyMember)The email address already belongs to a user in the organization. final static ErrorDetailsofCannotInviteEmailsWithUnverifiedDomains(CannotInviteEmailsWithUnverifiedDomainsErrorDetails cannotInviteEmailsWithUnverifiedDomains)The email address's domain is not one of the verified domains of the organization's parent organization. final static ErrorDetailsofEmailDomainNotAllowed(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. final static ErrorDetailsofInviteAlreadyExists(InviteAlreadyExistsErrorDetails inviteAlreadyExists)A pending invite already exists for the email address. final static ErrorDetailsofOrgMemberLimitExceeded(OrgMemberLimitExceededErrorDetails orgMemberLimitExceeded)The organization has reached the member limit that Anthropic set for it. final static ErrorDetailsofRbacGroupGrantsOwnerAccess(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. final static ErrorDetailsofRbacGroupOwnerAccessUnconfirmed(RbacGroupOwnerAccessUnconfirmedErrorDetails rbacGroupOwnerAccessUnconfirmed)The API could not finish checking whether an RBAC Group in the request grants owner access, so it made no change. final static ErrorDetailsofCannotRemoveLastMember(CannotRemoveLastMemberErrorDetails cannotRemoveLastMember)The user is the organization's only member. final static ErrorDetailsofConcurrentMembershipChange(ConcurrentMembershipChangeErrorDetails concurrentMembershipChange)Another change to the organization's members is in progress. final static ErrorDetailsofExternalKeyValidationFailed(ExternalKeyValidationFailedErrorDetails externalKeyValidationFailed)The External Key failed Anthropic's validation, so the request was refused. final static ErrorDetailsofExternalKeyValidationTimedOut(ExternalKeyValidationTimedOutErrorDetails externalKeyValidationTimedOut)Anthropic's validation of the External Key did not finish in time, so the request was refused. final static ErrorDetailsofKeyProfileMismatch(KeyProfileMismatchErrorDetails keyProfileMismatch)After this request, the External Key and the Workspace would not have the same user profile. final static ErrorDetailsofWorkspacePolicyViolation(WorkspacePolicyViolationErrorDetails workspacePolicyViolation)The request breaks the organization's Workspace Policy. final static ErrorDetailsofWorkspacePolicyViolation(WorkspacePolicyField field)Returns an immutable instance of ErrorDetails whose ofWorkspacePolicyViolation variant is built from the given required field. final static ErrorDetailsofExternalKeyChanged(ExternalKeyChangedErrorDetails externalKeyChanged)The external key changed while the request was validating it. final static ErrorDetailsofWorkspaceMemberLimitExceeded(WorkspaceMemberLimitExceededErrorDetails workspaceMemberLimitExceeded)The workspace has reached the member limit that Anthropic set for it. final static ErrorDetailsofOrganizationTypeNotSupported(OrganizationTypeNotSupportedErrorDetails organizationTypeNotSupported)The endpoint does not support the organization's type. final static ErrorDetailsofParentOrganizationRequired(ParentOrganizationRequiredErrorDetails parentOrganizationRequired)The endpoint serves only organizations that belong to a parent organization, and this organization belongs to none. final static ErrorDetailsofRbacRoleNotFound(RbacRoleNotFoundErrorDetails rbacRoleNotFound)No RBAC Role with this ID was found. final static ErrorDetailsofEnvironmentCreateDisabled(BetaEnvironmentCreateDisabledErrorDetails environmentCreateDisabled)Anthropic has turned off creating environments for this organization. final static ErrorDetailsofEnvironmentArchived(BetaEnvironmentArchivedErrorDetails environmentArchived)The environment is archived, so it cannot be updated. final static ErrorDetailsofInvalidConfigTypeChange(BetaInvalidConfigTypeChangeErrorDetails invalidConfigTypeChange)config.typediffers from the environment's stored type, which cannot change after creation.final static ErrorDetailsofEnvironmentUpdateDisabled(BetaEnvironmentUpdateDisabledErrorDetails environmentUpdateDisabled)Anthropic has turned off updating environments for this organization. final static ErrorDetailsofHeartbeatPreconditionFailed(BetaHeartbeatPreconditionFailedErrorDetails heartbeatPreconditionFailed)expected_last_heartbeatdoes not match the stored heartbeat, so another worker may hold the lease.final static ErrorDetailsofHeartbeatPreconditionFailed(BetaWorkLeaseState currentState)Returns an immutable instance of ErrorDetails whose ofHeartbeatPreconditionFailed variant is built from the given required currentState. final static ErrorDetailsofInvalidMetadata(BetaInvalidMetadataErrorDetails invalidMetadata)metadatahas too many keys, a key or value that is too long, or a reserved key.final static ErrorDetailsofCannotSignOutPrimaryOwner(BetaCannotSignOutPrimaryOwnerErrorDetails cannotSignOutPrimaryOwner)The member is the organization's primary owner, whom no API key or token can sign out. final static ErrorDetailsofCannotSignOutSelf(BetaCannotSignOutSelfErrorDetails cannotSignOutSelf)The member is the user the API key or token belongs to. final static ErrorDetailsofOrganizationNotEnrolledInBeta(BetaOrganizationNotEnrolledInBetaErrorDetails organizationNotEnrolledInBeta)The beta that the endpoint requires is not enabled for the organization. final static ErrorDetailsofCannotSignOutManagedMember(BetaCannotSignOutManagedMemberErrorDetails cannotSignOutManagedMember)The member has the managedrole, and this API key or token cannot sign them out.final static ErrorDetailsofCannotSignOutMembershipAdmin(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. final static ErrorDetailsofCannotSignOutOwner(BetaCannotSignOutOwnerErrorDetails cannotSignOutOwner)The member is an owner or has owner permissions, and this API key or token cannot sign them out. final static ErrorDetailsofCannotSignOutPrivilegedMember(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. final static ErrorDetailsofSpendLimitsAdminApiWritesNotEnabled(BetaSpendLimitsAdminApiWritesNotEnabledErrorDetails spendLimitsAdminApiWritesNotEnabled)The organization cannot retrieve, set or delete spend limits with an Admin API credential. final static ErrorDetailsofUnsupportedCharset(BetaUnsupportedCharsetErrorDetails unsupportedCharset)The request's Content-Typeheader names a charset other than UTF-8, ISO-8859-1 or US-ASCII.final static ErrorDetailsofPluginNameTaken(BetaPluginNameTakenErrorDetails pluginNameTaken)The marketplace already holds this name. final static ErrorDetailsofSkillNameTaken(BetaSkillNameTakenErrorDetails skillNameTaken)One of the Plugin's skills has the name of an organization skill. final static ErrorDetailsofSkillNameTaken(String skillName)Returns an immutable instance of ErrorDetails whose ofSkillNameTaken variant is built from the given required skillName. final static ErrorDetailsofRegistrationPending(BetaRegistrationPendingErrorDetails registrationPending)The Plugin version was stored but is not yet usable in claude.ai. final static ErrorDetailsofScanFailed(BetaScanFailedErrorDetails scanFailed)The version in plugin_version_iddid not pass its content scan, so it cannot be served.final static ErrorDetailsofScanFailed(String pluginVersionId)Returns an immutable instance of ErrorDetails whose ofScanFailed variant is built from the given required pluginVersionId. final static ErrorDetailsofScanPending(BetaScanPendingErrorDetails scanPending)The content scan of the version in plugin_version_idis still running.final static ErrorDetailsofScanPending(String pluginVersionId)Returns an immutable instance of ErrorDetails whose ofScanPending variant is built from the given required pluginVersionId. final static ErrorDetailsofSlackChannelSetUpSettingsRefused(BetaSlackChannelSetUpSettingsRefusedErrorDetails slackChannelSetUpSettingsRefused)The request set the channel up, and settingswas then refused.final static ErrorDetailsofSlackChannelSetUpSettingsRefused(String slackChannelId)Returns an immutable instance of ErrorDetails whose ofSlackChannelSetUpSettingsRefused variant is built from the given required slackChannelId. final static ErrorDetailsofApiKeyScopeMissing(BetaApiKeyScopeMissingErrorDetails apiKeyScopeMissing)The API key lacks the scope the request needs: read:claude_tagfor a read,write:claude_tagfor a change.final static ErrorDetailsofClaudeTagWritesNotEnabled(BetaClaudeTagWritesNotEnabledErrorDetails claudeTagWritesNotEnabled)Changes through the Claude Tag API are not enabled for the organization. final static ErrorDetailsofComplianceConfigurationRestricted(BetaComplianceConfigurationRestrictedErrorDetails complianceConfigurationRestricted)The organization's compliance configuration does not let Claude Tag store anything new. final static ErrorDetailsofOrganizationLevelScopedApiKeyRequired(BetaOrganizationLevelScopedApiKeyRequiredErrorDetails organizationLevelScopedApiKeyRequired)The credential is not a scoped API key that is bound at the organization level. final static ErrorDetailsofEnvironmentNotFound(BetaEnvironmentNotFoundErrorDetails environmentNotFound)settings.environment_idnames no Environment within the organization's reach.final static ErrorDetailsofSlackChannelSetUpEnvironmentNotFound(BetaSlackChannelSetUpEnvironmentNotFoundErrorDetails slackChannelSetUpEnvironmentNotFound)settings.environment_idnames no Environment within the organization's reach, and the request had set the channel up by then.final static ErrorDetailsofSlackChannelSetUpEnvironmentNotFound(String slackChannelId)Returns an immutable instance of ErrorDetails whose ofSlackChannelSetUpEnvironmentNotFound variant is built from the given required slackChannelId. final static ErrorDetailsofSlackChannelSetUpSettingsConflict(BetaSlackChannelSetUpSettingsConflictErrorDetails slackChannelSetUpSettingsConflict)The request set the channel up, and something else then changed the channel or removed it. final static ErrorDetailsofSlackChannelSetUpSettingsConflict(String slackChannelId)Returns an immutable instance of ErrorDetails whose ofSlackChannelSetUpSettingsConflict variant is built from the given required slackChannelId. final static ErrorDetailsofBundleAttachmentNotSupported(BetaBundleAttachmentNotSupportedErrorDetails bundleAttachmentNotSupported)The Bundle has an attachment this API does not support editing, so its instructions can be changed only in claude.ai. final static ErrorDetailsofBundleOnCall(BetaBundleOnCallErrorDetails bundleOnCall)This Bundle's instructions are managed in claude.ai and can't be changed through the API. -
-
Method Detail
-
availableToolsLimitExceeded
final Optional<AvailableToolsLimitExceededErrorDetails> availableToolsLimitExceeded()
The tools available after a message exceed a limit on their number or their size.
-
claudeCodeKeyCreatorNotMember
final Optional<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.
-
claudeCodeVersionTooOld
final Optional<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.
-
cmekKeyDisabled
final Optional<CmekKeyDisabledErrorDetails> cmekKeyDisabled()
The workspace's customer-managed encryption key is disabled or revoked. Re-enable the key, then retry.
-
cmekKeyNetworkBlocked
final Optional<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.
-
compactionBlockAmbiguous
final Optional<CompactionBlockAmbiguousErrorDetails> compactionBlockAmbiguous()
messagesholds more than onecompactionblock with content. Send only the block the conversation returned last.
-
compactionBlockMisplaced
final Optional<CompactionBlockMisplacedErrorDetails> compactionBlockMisplaced()
The
compactionblock is not the first block of the conversation, or is in asystemmessage.
-
compactionContentMismatch
final Optional<CompactionContentMismatchErrorDetails> compactionContentMismatch()
The
compactionblock'scontentdiffers from the text itssignaturerecorded.
-
compactionIncompleteTurn
final Optional<CompactionIncompleteTurnErrorDetails> compactionIncompleteTurn()
The compaction request ends on an
assistantturn that is not finished.
-
compactionNothingToSummarize
final Optional<CompactionNothingToSummarizeErrorDetails> compactionNothingToSummarize()
messagesholds nouserorassistantcontent to summarize or adopt.
-
compactionSignatureInvalid
final Optional<CompactionSignatureInvalidErrorDetails> compactionSignatureInvalid()
The
compactionblock'ssignaturedoes not verify.
-
compactionTooManyToolReferences
final Optional<CompactionTooManyToolReferencesErrorDetails> compactionTooManyToolReferences()
The conversation references more distinct tools than a
compactionblock can record.
-
compactionToolChangesMismatch
final Optional<CompactionToolChangesMismatchErrorDetails> compactionToolChangesMismatch()
The
compactionblock'stool_changesdiffers from what was returned with the block.
-
organizationOnHold
final Optional<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.
-
requestBodyEncodingInvalid
final Optional<RequestBodyEncodingInvalidErrorDetails> requestBodyEncodingInvalid()
The request body is not valid for its
Content-Encoding.
-
requestBodyEncodingUnsupported
final Optional<RequestBodyEncodingUnsupportedErrorDetails> requestBodyEncodingUnsupported()
The request's
Content-Encodingis not supported.
-
threadAlreadyContinued
final Optional<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.
-
threadContinueInFlight
final Optional<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"}.
-
threadFingerprintMismatch
final Optional<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.
-
threadUnsupportedRequest
final Optional<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.
-
toolNameConflict
final Optional<ToolNameConflictErrorDetails> toolNameConflict()
A tool made available in
messagestakes a name that an available tool of another kind, or of another MCP server, already holds.
-
toolReferenceUnresolved
final Optional<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.
-
userProfileRequired
final Optional<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.
-
linkedOrganizationBillingUnavailable
final Optional<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.
-
linkedOrganizationSpendLimitReached
final Optional<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.
-
userProfileBillingNotAuthorized
final Optional<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.
-
userProfileNotBillable
final Optional<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.
-
threadNotFound
final Optional<ThreadNotFoundErrorDetails> threadNotFound()
No usable Thread state was found for
previous_message_id. Replay the full conversation withthread: {"type": "create"}to start a new Thread.
-
skillReadBlockedUndecryptable
final Optional<SkillReadBlockedUndecryptableErrorDetails> skillReadBlockedUndecryptable()
A custom skill the request names is stored under an encryption key state the workspace cannot currently decrypt.
-
requestBodyTooLargeAfterDecoding
final Optional<RequestBodyTooLargeAfterDecodingErrorDetails> requestBodyTooLargeAfterDecoding()
The compressed request body exceeds the request size limit once decoded.
-
contractSpendLimitReached
final Optional<ContractSpendLimitReachedErrorDetails> contractSpendLimitReached()
The organization has reached the spend limit of its contract.
-
enforcedSpendLimitReached
final Optional<EnforcedSpendLimitReachedErrorDetails> enforcedSpendLimitReached()
The organization has crossed the monthly API usage threshold of its API tier.
-
rampLimitExceeded
final Optional<RampLimitExceededErrorDetails> rampLimitExceeded()
The request would exceed a ramp limit, which caps how fast usage can grow. Retry after the time in the
retry-afterheader.
-
cmekKeyUnreachable
final Optional<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.
-
compactionUnavailable
final Optional<CompactionUnavailableErrorDetails> compactionUnavailable()
The compaction could not be completed for a transient server reason. Retry the request.
-
storageQuotaExceeded
final Optional<StorageQuotaExceededErrorDetails> storageQuotaExceeded()
The organization's file storage quota is exhausted. Delete files to free up space, then retry the upload.
-
fileNotDownloadable
final Optional<FileNotDownloadableErrorDetails> fileNotDownloadable()
The file has
downloadable: false. Only files generated by a tool, such as the code execution tool, can be downloaded.
-
fileExpired
final Optional<FileExpiredErrorDetails> fileExpired()
The file's
expires_athas passed, so its content is no longer available.
-
cmekContextUnavailable
final Optional<CmekContextUnavailableErrorDetails> cmekContextUnavailable()
The workspace's encryption settings could not be read, so the request was refused. Retry in a few minutes.
-
orgApiKeyLimitExceeded
final Optional<OrgApiKeyLimitExceededErrorDetails> orgApiKeyLimitExceeded()
The organization has reached its limit of active API keys.
-
workspaceApiKeyLimitExceeded
final Optional<WorkspaceApiKeyLimitExceededErrorDetails> workspaceApiKeyLimitExceeded()
The workspace has reached its limit of active API keys.
-
sandboxEgressRestricted
final Optional<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.
-
userProfileNotFound
final Optional<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.
-
externalKeyInWorkspacePolicy
final Optional<ExternalKeyInWorkspacePolicyErrorDetails> externalKeyInWorkspacePolicy()
The External Key can't be deleted or reconfigured while the organization's Workspace Policy lists it as an allowed key.
-
alreadyMember
final Optional<AlreadyMemberErrorDetails> alreadyMember()
The email address already belongs to a user in the organization. The message names the user.
-
cannotInviteEmailsWithUnverifiedDomains
final Optional<CannotInviteEmailsWithUnverifiedDomainsErrorDetails> cannotInviteEmailsWithUnverifiedDomains()
The email address's domain is not one of the verified domains of the organization's parent organization.
-
emailDomainNotAllowed
final Optional<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.
-
inviteAlreadyExists
final Optional<InviteAlreadyExistsErrorDetails> inviteAlreadyExists()
A pending invite already exists for the email address. The message names the invite.
-
orgMemberLimitExceeded
final Optional<OrgMemberLimitExceededErrorDetails> orgMemberLimitExceeded()
The organization has reached the member limit that Anthropic set for it. Pending invites count toward the limit.
-
rbacGroupGrantsOwnerAccess
final Optional<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.
-
rbacGroupOwnerAccessUnconfirmed
final Optional<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.
-
cannotRemoveLastMember
final Optional<CannotRemoveLastMemberErrorDetails> cannotRemoveLastMember()
The user is the organization's only member. Add another member before removing this one.
-
concurrentMembershipChange
final Optional<ConcurrentMembershipChangeErrorDetails> concurrentMembershipChange()
Another change to the organization's members is in progress. Retry the request once it completes.
-
externalKeyValidationFailed
final Optional<ExternalKeyValidationFailedErrorDetails> externalKeyValidationFailed()
The External Key failed Anthropic's validation, so the request was refused. The message gives the reason, if there is one.
-
externalKeyValidationTimedOut
final Optional<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.
-
keyProfileMismatch
final Optional<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.
-
workspacePolicyViolation
final Optional<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.
-
externalKeyChanged
final Optional<ExternalKeyChangedErrorDetails> externalKeyChanged()
The external key changed while the request was validating it. Send the request again.
-
workspaceMemberLimitExceeded
final Optional<WorkspaceMemberLimitExceededErrorDetails> workspaceMemberLimitExceeded()
The workspace has reached the member limit that Anthropic set for it.
-
organizationTypeNotSupported
final Optional<OrganizationTypeNotSupportedErrorDetails> organizationTypeNotSupported()
The endpoint does not support the organization's type. Each endpoint's description says which organization types it supports.
-
parentOrganizationRequired
final Optional<ParentOrganizationRequiredErrorDetails> parentOrganizationRequired()
The endpoint serves only organizations that belong to a parent organization, and this organization belongs to none.
-
rbacRoleNotFound
final Optional<RbacRoleNotFoundErrorDetails> rbacRoleNotFound()
No RBAC Role with this ID was found.
-
environmentCreateDisabled
final Optional<BetaEnvironmentCreateDisabledErrorDetails> environmentCreateDisabled()
Anthropic has turned off creating environments for this organization. Existing environments still work.
-
environmentArchived
final Optional<BetaEnvironmentArchivedErrorDetails> environmentArchived()
The environment is archived, so it cannot be updated.
-
invalidConfigTypeChange
final Optional<BetaInvalidConfigTypeChangeErrorDetails> invalidConfigTypeChange()
config.typediffers from the environment's stored type, which cannot change after creation.
-
environmentUpdateDisabled
final Optional<BetaEnvironmentUpdateDisabledErrorDetails> environmentUpdateDisabled()
Anthropic has turned off updating environments for this organization. Existing environments still work as they are.
-
heartbeatPreconditionFailed
final Optional<BetaHeartbeatPreconditionFailedErrorDetails> heartbeatPreconditionFailed()
expected_last_heartbeatdoes not match the stored heartbeat, so another worker may hold the lease.
-
invalidMetadata
final Optional<BetaInvalidMetadataErrorDetails> invalidMetadata()
metadatahas too many keys, a key or value that is too long, or a reserved key. The message names each problem.
-
cannotSignOutPrimaryOwner
final Optional<BetaCannotSignOutPrimaryOwnerErrorDetails> cannotSignOutPrimaryOwner()
The member is the organization's primary owner, whom no API key or token can sign out.
-
cannotSignOutSelf
final Optional<BetaCannotSignOutSelfErrorDetails> cannotSignOutSelf()
The member is the user the API key or token belongs to.
-
organizationNotEnrolledInBeta
final Optional<BetaOrganizationNotEnrolledInBetaErrorDetails> organizationNotEnrolledInBeta()
The beta that the endpoint requires is not enabled for the organization. The message names the beta value.
-
cannotSignOutManagedMember
final Optional<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.
-
cannotSignOutMembershipAdmin
final Optional<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.
-
cannotSignOutOwner
final Optional<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.
-
cannotSignOutPrivilegedMember
final Optional<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.
-
spendLimitsAdminApiWritesNotEnabled
final Optional<BetaSpendLimitsAdminApiWritesNotEnabledErrorDetails> spendLimitsAdminApiWritesNotEnabled()
The organization cannot retrieve, set or delete spend limits with an Admin API credential.
-
unsupportedCharset
final Optional<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.
-
pluginNameTaken
final Optional<BetaPluginNameTakenErrorDetails> pluginNameTaken()
The marketplace already holds this name.
plugin_idis the Plugin that holds it, and can be absent.
-
skillNameTaken
final Optional<BetaSkillNameTakenErrorDetails> skillNameTaken()
One of the Plugin's skills has the name of an organization skill.
skill_nameis that name.
-
registrationPending
final Optional<BetaRegistrationPendingErrorDetails> registrationPending()
The Plugin version was stored but is not yet usable in claude.ai.
plugin_idandplugin_version_ididentify what was stored.
-
scanFailed
final Optional<BetaScanFailedErrorDetails> scanFailed()
The version in
plugin_version_iddid not pass its content scan, so it cannot be served.
-
scanPending
final Optional<BetaScanPendingErrorDetails> scanPending()
The content scan of the version in
plugin_version_idis still running. Retry once the scan finishes.
-
slackChannelSetUpSettingsRefused
final Optional<BetaSlackChannelSetUpSettingsRefusedErrorDetails> slackChannelSetUpSettingsRefused()
The request set the channel up, and
settingswas then refused. The channel stays set up with every setting unset.
-
apiKeyScopeMissing
final Optional<BetaApiKeyScopeMissingErrorDetails> apiKeyScopeMissing()
The API key lacks the scope the request needs:
read:claude_tagfor a read,write:claude_tagfor a change.
-
claudeTagWritesNotEnabled
final Optional<BetaClaudeTagWritesNotEnabledErrorDetails> claudeTagWritesNotEnabled()
Changes through the Claude Tag API are not enabled for the organization.
-
complianceConfigurationRestricted
final Optional<BetaComplianceConfigurationRestrictedErrorDetails> complianceConfigurationRestricted()
The organization's compliance configuration does not let Claude Tag store anything new.
-
organizationLevelScopedApiKeyRequired
final Optional<BetaOrganizationLevelScopedApiKeyRequiredErrorDetails> organizationLevelScopedApiKeyRequired()
The credential is not a scoped API key that is bound at the organization level.
-
environmentNotFound
final Optional<BetaEnvironmentNotFoundErrorDetails> environmentNotFound()
settings.environment_idnames no Environment within the organization's reach.
-
slackChannelSetUpEnvironmentNotFound
final Optional<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.
-
slackChannelSetUpSettingsConflict
final Optional<BetaSlackChannelSetUpSettingsConflictErrorDetails> slackChannelSetUpSettingsConflict()
The request set the channel up, and something else then changed the channel or removed it. Nothing of
settingswas stored.
-
bundleAttachmentNotSupported
final Optional<BetaBundleAttachmentNotSupportedErrorDetails> bundleAttachmentNotSupported()
The Bundle has an attachment this API does not support editing, so its instructions can be changed only in claude.ai.
-
bundleOnCall
final Optional<BetaBundleOnCallErrorDetails> bundleOnCall()
This Bundle's instructions are managed in claude.ai and can't be changed through the API.
-
errorCode
final ErrorDetails.ErrorCode errorCode()
-
pluginVersionId
final Optional<String> pluginVersionId()
-
slackChannelId
final Optional<String> slackChannelId()
-
isAvailableToolsLimitExceeded
final Boolean isAvailableToolsLimitExceeded()
-
isClaudeCodeKeyCreatorNotMember
final Boolean isClaudeCodeKeyCreatorNotMember()
-
isClaudeCodeVersionTooOld
final Boolean isClaudeCodeVersionTooOld()
-
isCmekKeyDisabled
final Boolean isCmekKeyDisabled()
-
isCmekKeyNetworkBlocked
final Boolean isCmekKeyNetworkBlocked()
-
isCompactionBlockAmbiguous
final Boolean isCompactionBlockAmbiguous()
-
isCompactionBlockMisplaced
final Boolean isCompactionBlockMisplaced()
-
isCompactionContentMismatch
final Boolean isCompactionContentMismatch()
-
isCompactionIncompleteTurn
final Boolean isCompactionIncompleteTurn()
-
isCompactionNothingToSummarize
final Boolean isCompactionNothingToSummarize()
-
isCompactionSignatureInvalid
final Boolean isCompactionSignatureInvalid()
-
isCompactionTooManyToolReferences
final Boolean isCompactionTooManyToolReferences()
-
isCompactionToolChangesMismatch
final Boolean isCompactionToolChangesMismatch()
-
isOrganizationOnHold
final Boolean isOrganizationOnHold()
-
isRequestBodyEncodingInvalid
final Boolean isRequestBodyEncodingInvalid()
-
isRequestBodyEncodingUnsupported
final Boolean isRequestBodyEncodingUnsupported()
-
isThreadAlreadyContinued
final Boolean isThreadAlreadyContinued()
-
isThreadContinueInFlight
final Boolean isThreadContinueInFlight()
-
isThreadFingerprintMismatch
final Boolean isThreadFingerprintMismatch()
-
isThreadUnsupportedRequest
final Boolean isThreadUnsupportedRequest()
-
isToolNameConflict
final Boolean isToolNameConflict()
-
isToolReferenceUnresolved
final Boolean isToolReferenceUnresolved()
-
isUserProfileRequired
final Boolean isUserProfileRequired()
-
isLinkedOrganizationBillingUnavailable
final Boolean isLinkedOrganizationBillingUnavailable()
-
isLinkedOrganizationSpendLimitReached
final Boolean isLinkedOrganizationSpendLimitReached()
-
isUserProfileBillingNotAuthorized
final Boolean isUserProfileBillingNotAuthorized()
-
isUserProfileNotBillable
final Boolean isUserProfileNotBillable()
-
isThreadNotFound
final Boolean isThreadNotFound()
-
isSkillReadBlockedUndecryptable
final Boolean isSkillReadBlockedUndecryptable()
-
isRequestBodyTooLargeAfterDecoding
final Boolean isRequestBodyTooLargeAfterDecoding()
-
isContractSpendLimitReached
final Boolean isContractSpendLimitReached()
-
isEnforcedSpendLimitReached
final Boolean isEnforcedSpendLimitReached()
-
isRampLimitExceeded
final Boolean isRampLimitExceeded()
-
isCmekKeyUnreachable
final Boolean isCmekKeyUnreachable()
-
isCompactionUnavailable
final Boolean isCompactionUnavailable()
-
isStorageQuotaExceeded
final Boolean isStorageQuotaExceeded()
-
isFileNotDownloadable
final Boolean isFileNotDownloadable()
-
isFileExpired
final Boolean isFileExpired()
-
isCmekContextUnavailable
final Boolean isCmekContextUnavailable()
-
isOrgApiKeyLimitExceeded
final Boolean isOrgApiKeyLimitExceeded()
-
isWorkspaceApiKeyLimitExceeded
final Boolean isWorkspaceApiKeyLimitExceeded()
-
isSandboxEgressRestricted
final Boolean isSandboxEgressRestricted()
-
isUserProfileNotFound
final Boolean isUserProfileNotFound()
-
isExternalKeyInWorkspacePolicy
final Boolean isExternalKeyInWorkspacePolicy()
-
isAlreadyMember
final Boolean isAlreadyMember()
-
isCannotInviteEmailsWithUnverifiedDomains
final Boolean isCannotInviteEmailsWithUnverifiedDomains()
-
isEmailDomainNotAllowed
final Boolean isEmailDomainNotAllowed()
-
isInviteAlreadyExists
final Boolean isInviteAlreadyExists()
-
isOrgMemberLimitExceeded
final Boolean isOrgMemberLimitExceeded()
-
isRbacGroupGrantsOwnerAccess
final Boolean isRbacGroupGrantsOwnerAccess()
-
isRbacGroupOwnerAccessUnconfirmed
final Boolean isRbacGroupOwnerAccessUnconfirmed()
-
isCannotRemoveLastMember
final Boolean isCannotRemoveLastMember()
-
isConcurrentMembershipChange
final Boolean isConcurrentMembershipChange()
-
isExternalKeyValidationFailed
final Boolean isExternalKeyValidationFailed()
-
isExternalKeyValidationTimedOut
final Boolean isExternalKeyValidationTimedOut()
-
isKeyProfileMismatch
final Boolean isKeyProfileMismatch()
-
isWorkspacePolicyViolation
final Boolean isWorkspacePolicyViolation()
-
isExternalKeyChanged
final Boolean isExternalKeyChanged()
-
isWorkspaceMemberLimitExceeded
final Boolean isWorkspaceMemberLimitExceeded()
-
isOrganizationTypeNotSupported
final Boolean isOrganizationTypeNotSupported()
-
isParentOrganizationRequired
final Boolean isParentOrganizationRequired()
-
isRbacRoleNotFound
final Boolean isRbacRoleNotFound()
-
isEnvironmentCreateDisabled
final Boolean isEnvironmentCreateDisabled()
-
isEnvironmentArchived
final Boolean isEnvironmentArchived()
-
isInvalidConfigTypeChange
final Boolean isInvalidConfigTypeChange()
-
isEnvironmentUpdateDisabled
final Boolean isEnvironmentUpdateDisabled()
-
isHeartbeatPreconditionFailed
final Boolean isHeartbeatPreconditionFailed()
-
isInvalidMetadata
final Boolean isInvalidMetadata()
-
isCannotSignOutPrimaryOwner
final Boolean isCannotSignOutPrimaryOwner()
-
isCannotSignOutSelf
final Boolean isCannotSignOutSelf()
-
isOrganizationNotEnrolledInBeta
final Boolean isOrganizationNotEnrolledInBeta()
-
isCannotSignOutManagedMember
final Boolean isCannotSignOutManagedMember()
-
isCannotSignOutMembershipAdmin
final Boolean isCannotSignOutMembershipAdmin()
-
isCannotSignOutOwner
final Boolean isCannotSignOutOwner()
-
isCannotSignOutPrivilegedMember
final Boolean isCannotSignOutPrivilegedMember()
-
isSpendLimitsAdminApiWritesNotEnabled
final Boolean isSpendLimitsAdminApiWritesNotEnabled()
-
isUnsupportedCharset
final Boolean isUnsupportedCharset()
-
isPluginNameTaken
final Boolean isPluginNameTaken()
-
isSkillNameTaken
final Boolean isSkillNameTaken()
-
isRegistrationPending
final Boolean isRegistrationPending()
-
isScanFailed
final Boolean isScanFailed()
-
isScanPending
final Boolean isScanPending()
-
isSlackChannelSetUpSettingsRefused
final Boolean isSlackChannelSetUpSettingsRefused()
-
isApiKeyScopeMissing
final Boolean isApiKeyScopeMissing()
-
isClaudeTagWritesNotEnabled
final Boolean isClaudeTagWritesNotEnabled()
-
isComplianceConfigurationRestricted
final Boolean isComplianceConfigurationRestricted()
-
isOrganizationLevelScopedApiKeyRequired
final Boolean isOrganizationLevelScopedApiKeyRequired()
-
isEnvironmentNotFound
final Boolean isEnvironmentNotFound()
-
isSlackChannelSetUpEnvironmentNotFound
final Boolean isSlackChannelSetUpEnvironmentNotFound()
-
isSlackChannelSetUpSettingsConflict
final Boolean isSlackChannelSetUpSettingsConflict()
-
isBundleAttachmentNotSupported
final Boolean isBundleAttachmentNotSupported()
-
isBundleOnCall
final Boolean isBundleOnCall()
-
asAvailableToolsLimitExceeded
final AvailableToolsLimitExceededErrorDetails asAvailableToolsLimitExceeded()
The tools available after a message exceed a limit on their number or their size.
-
asClaudeCodeKeyCreatorNotMember
final ClaudeCodeKeyCreatorNotMemberErrorDetails asClaudeCodeKeyCreatorNotMember()
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.
-
asClaudeCodeVersionTooOld
final ClaudeCodeVersionTooOldErrorDetails asClaudeCodeVersionTooOld()
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.
-
asCmekKeyDisabled
final CmekKeyDisabledErrorDetails asCmekKeyDisabled()
The workspace's customer-managed encryption key is disabled or revoked. Re-enable the key, then retry.
-
asCmekKeyNetworkBlocked
final CmekKeyNetworkBlockedErrorDetails asCmekKeyNetworkBlocked()
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.
-
asCompactionBlockAmbiguous
final CompactionBlockAmbiguousErrorDetails asCompactionBlockAmbiguous()
messagesholds more than onecompactionblock with content. Send only the block the conversation returned last.
-
asCompactionBlockMisplaced
final CompactionBlockMisplacedErrorDetails asCompactionBlockMisplaced()
The
compactionblock is not the first block of the conversation, or is in asystemmessage.
-
asCompactionContentMismatch
final CompactionContentMismatchErrorDetails asCompactionContentMismatch()
The
compactionblock'scontentdiffers from the text itssignaturerecorded.
-
asCompactionIncompleteTurn
final CompactionIncompleteTurnErrorDetails asCompactionIncompleteTurn()
The compaction request ends on an
assistantturn that is not finished.
-
asCompactionNothingToSummarize
final CompactionNothingToSummarizeErrorDetails asCompactionNothingToSummarize()
messagesholds nouserorassistantcontent to summarize or adopt.
-
asCompactionSignatureInvalid
final CompactionSignatureInvalidErrorDetails asCompactionSignatureInvalid()
The
compactionblock'ssignaturedoes not verify.
-
asCompactionTooManyToolReferences
final CompactionTooManyToolReferencesErrorDetails asCompactionTooManyToolReferences()
The conversation references more distinct tools than a
compactionblock can record.
-
asCompactionToolChangesMismatch
final CompactionToolChangesMismatchErrorDetails asCompactionToolChangesMismatch()
The
compactionblock'stool_changesdiffers from what was returned with the block.
-
asOrganizationOnHold
final OrganizationOnHoldErrorDetails asOrganizationOnHold()
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.
-
asRequestBodyEncodingInvalid
final RequestBodyEncodingInvalidErrorDetails asRequestBodyEncodingInvalid()
The request body is not valid for its
Content-Encoding.
-
asRequestBodyEncodingUnsupported
final RequestBodyEncodingUnsupportedErrorDetails asRequestBodyEncodingUnsupported()
The request's
Content-Encodingis not supported.
-
asThreadAlreadyContinued
final ThreadAlreadyContinuedErrorDetails asThreadAlreadyContinued()
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.
-
asThreadContinueInFlight
final ThreadContinueInFlightErrorDetails asThreadContinueInFlight()
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"}.
-
asThreadFingerprintMismatch
final ThreadFingerprintMismatchErrorDetails asThreadFingerprintMismatch()
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.
-
asThreadUnsupportedRequest
final ThreadUnsupportedRequestErrorDetails asThreadUnsupportedRequest()
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.
-
asToolNameConflict
final ToolNameConflictErrorDetails asToolNameConflict()
A tool made available in
messagestakes a name that an available tool of another kind, or of another MCP server, already holds.
-
asToolReferenceUnresolved
final ToolReferenceUnresolvedErrorDetails asToolReferenceUnresolved()
A tool change or MCP tool listing references a tool or MCP server that is not defined at that position in the conversation.
-
asUserProfileRequired
final UserProfileRequiredErrorDetails asUserProfileRequired()
The request sets
billing_policy.bill_toto"user_profile"but names no user profile. Name the profile to bill in theanthropic-user-profile-idheader.
-
asLinkedOrganizationBillingUnavailable
final LinkedOrganizationBillingUnavailableErrorDetails asLinkedOrganizationBillingUnavailable()
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.
-
asLinkedOrganizationSpendLimitReached
final LinkedOrganizationSpendLimitReachedErrorDetails asLinkedOrganizationSpendLimitReached()
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.
-
asUserProfileBillingNotAuthorized
final UserProfileBillingNotAuthorizedErrorDetails asUserProfileBillingNotAuthorized()
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.
-
asUserProfileNotBillable
final UserProfileNotBillableErrorDetails asUserProfileNotBillable()
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.
-
asThreadNotFound
final ThreadNotFoundErrorDetails asThreadNotFound()
No usable Thread state was found for
previous_message_id. Replay the full conversation withthread: {"type": "create"}to start a new Thread.
-
asSkillReadBlockedUndecryptable
final SkillReadBlockedUndecryptableErrorDetails asSkillReadBlockedUndecryptable()
A custom skill the request names is stored under an encryption key state the workspace cannot currently decrypt.
-
asRequestBodyTooLargeAfterDecoding
final RequestBodyTooLargeAfterDecodingErrorDetails asRequestBodyTooLargeAfterDecoding()
The compressed request body exceeds the request size limit once decoded.
-
asContractSpendLimitReached
final ContractSpendLimitReachedErrorDetails asContractSpendLimitReached()
The organization has reached the spend limit of its contract.
-
asEnforcedSpendLimitReached
final EnforcedSpendLimitReachedErrorDetails asEnforcedSpendLimitReached()
The organization has crossed the monthly API usage threshold of its API tier.
-
asRampLimitExceeded
final RampLimitExceededErrorDetails asRampLimitExceeded()
The request would exceed a ramp limit, which caps how fast usage can grow. Retry after the time in the
retry-afterheader.
-
asCmekKeyUnreachable
final CmekKeyUnreachableErrorDetails asCmekKeyUnreachable()
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.
-
asCompactionUnavailable
final CompactionUnavailableErrorDetails asCompactionUnavailable()
The compaction could not be completed for a transient server reason. Retry the request.
-
asStorageQuotaExceeded
final StorageQuotaExceededErrorDetails asStorageQuotaExceeded()
The organization's file storage quota is exhausted. Delete files to free up space, then retry the upload.
-
asFileNotDownloadable
final FileNotDownloadableErrorDetails asFileNotDownloadable()
The file has
downloadable: false. Only files generated by a tool, such as the code execution tool, can be downloaded.
-
asFileExpired
final FileExpiredErrorDetails asFileExpired()
The file's
expires_athas passed, so its content is no longer available.
-
asCmekContextUnavailable
final CmekContextUnavailableErrorDetails asCmekContextUnavailable()
The workspace's encryption settings could not be read, so the request was refused. Retry in a few minutes.
-
asOrgApiKeyLimitExceeded
final OrgApiKeyLimitExceededErrorDetails asOrgApiKeyLimitExceeded()
The organization has reached its limit of active API keys.
-
asWorkspaceApiKeyLimitExceeded
final WorkspaceApiKeyLimitExceededErrorDetails asWorkspaceApiKeyLimitExceeded()
The workspace has reached its limit of active API keys.
-
asSandboxEgressRestricted
final SandboxEgressRestrictedErrorDetails asSandboxEgressRestricted()
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.
-
asUserProfileNotFound
final UserProfileNotFoundErrorDetails asUserProfileNotFound()
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.
-
asExternalKeyInWorkspacePolicy
final ExternalKeyInWorkspacePolicyErrorDetails asExternalKeyInWorkspacePolicy()
The External Key can't be deleted or reconfigured while the organization's Workspace Policy lists it as an allowed key.
-
asAlreadyMember
final AlreadyMemberErrorDetails asAlreadyMember()
The email address already belongs to a user in the organization. The message names the user.
-
asCannotInviteEmailsWithUnverifiedDomains
final CannotInviteEmailsWithUnverifiedDomainsErrorDetails asCannotInviteEmailsWithUnverifiedDomains()
The email address's domain is not one of the verified domains of the organization's parent organization.
-
asEmailDomainNotAllowed
final EmailDomainNotAllowedErrorDetails asEmailDomainNotAllowed()
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.
-
asInviteAlreadyExists
final InviteAlreadyExistsErrorDetails asInviteAlreadyExists()
A pending invite already exists for the email address. The message names the invite.
-
asOrgMemberLimitExceeded
final OrgMemberLimitExceededErrorDetails asOrgMemberLimitExceeded()
The organization has reached the member limit that Anthropic set for it. Pending invites count toward the limit.
-
asRbacGroupGrantsOwnerAccess
final RbacGroupGrantsOwnerAccessErrorDetails asRbacGroupGrantsOwnerAccess()
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.
-
asRbacGroupOwnerAccessUnconfirmed
final RbacGroupOwnerAccessUnconfirmedErrorDetails asRbacGroupOwnerAccessUnconfirmed()
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.
-
asCannotRemoveLastMember
final CannotRemoveLastMemberErrorDetails asCannotRemoveLastMember()
The user is the organization's only member. Add another member before removing this one.
-
asConcurrentMembershipChange
final ConcurrentMembershipChangeErrorDetails asConcurrentMembershipChange()
Another change to the organization's members is in progress. Retry the request once it completes.
-
asExternalKeyValidationFailed
final ExternalKeyValidationFailedErrorDetails asExternalKeyValidationFailed()
The External Key failed Anthropic's validation, so the request was refused. The message gives the reason, if there is one.
-
asExternalKeyValidationTimedOut
final ExternalKeyValidationTimedOutErrorDetails asExternalKeyValidationTimedOut()
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.
-
asKeyProfileMismatch
final KeyProfileMismatchErrorDetails asKeyProfileMismatch()
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.
-
asWorkspacePolicyViolation
final WorkspacePolicyViolationErrorDetails asWorkspacePolicyViolation()
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.
-
asExternalKeyChanged
final ExternalKeyChangedErrorDetails asExternalKeyChanged()
The external key changed while the request was validating it. Send the request again.
-
asWorkspaceMemberLimitExceeded
final WorkspaceMemberLimitExceededErrorDetails asWorkspaceMemberLimitExceeded()
The workspace has reached the member limit that Anthropic set for it.
-
asOrganizationTypeNotSupported
final OrganizationTypeNotSupportedErrorDetails asOrganizationTypeNotSupported()
The endpoint does not support the organization's type. Each endpoint's description says which organization types it supports.
-
asParentOrganizationRequired
final ParentOrganizationRequiredErrorDetails asParentOrganizationRequired()
The endpoint serves only organizations that belong to a parent organization, and this organization belongs to none.
-
asRbacRoleNotFound
final RbacRoleNotFoundErrorDetails asRbacRoleNotFound()
No RBAC Role with this ID was found.
-
asEnvironmentCreateDisabled
final BetaEnvironmentCreateDisabledErrorDetails asEnvironmentCreateDisabled()
Anthropic has turned off creating environments for this organization. Existing environments still work.
-
asEnvironmentArchived
final BetaEnvironmentArchivedErrorDetails asEnvironmentArchived()
The environment is archived, so it cannot be updated.
-
asInvalidConfigTypeChange
final BetaInvalidConfigTypeChangeErrorDetails asInvalidConfigTypeChange()
config.typediffers from the environment's stored type, which cannot change after creation.
-
asEnvironmentUpdateDisabled
final BetaEnvironmentUpdateDisabledErrorDetails asEnvironmentUpdateDisabled()
Anthropic has turned off updating environments for this organization. Existing environments still work as they are.
-
asHeartbeatPreconditionFailed
final BetaHeartbeatPreconditionFailedErrorDetails asHeartbeatPreconditionFailed()
expected_last_heartbeatdoes not match the stored heartbeat, so another worker may hold the lease.
-
asInvalidMetadata
final BetaInvalidMetadataErrorDetails asInvalidMetadata()
metadatahas too many keys, a key or value that is too long, or a reserved key. The message names each problem.
-
asCannotSignOutPrimaryOwner
final BetaCannotSignOutPrimaryOwnerErrorDetails asCannotSignOutPrimaryOwner()
The member is the organization's primary owner, whom no API key or token can sign out.
-
asCannotSignOutSelf
final BetaCannotSignOutSelfErrorDetails asCannotSignOutSelf()
The member is the user the API key or token belongs to.
-
asOrganizationNotEnrolledInBeta
final BetaOrganizationNotEnrolledInBetaErrorDetails asOrganizationNotEnrolledInBeta()
The beta that the endpoint requires is not enabled for the organization. The message names the beta value.
-
asCannotSignOutManagedMember
final BetaCannotSignOutManagedMemberErrorDetails asCannotSignOutManagedMember()
The member has the
managedrole, and this API key or token cannot sign them out. The error message says which keys and tokens can.
-
asCannotSignOutMembershipAdmin
final BetaCannotSignOutMembershipAdminErrorDetails asCannotSignOutMembershipAdmin()
The member is a membership admin, and the person the API key or token belongs to is not allowed to sign out membership admins.
-
asCannotSignOutOwner
final BetaCannotSignOutOwnerErrorDetails asCannotSignOutOwner()
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.
-
asCannotSignOutPrivilegedMember
final BetaCannotSignOutPrivilegedMemberErrorDetails asCannotSignOutPrivilegedMember()
This OAuth token cannot sign out a membership admin or a member whose roles grant owner, user management, or identity and access management.
-
asSpendLimitsAdminApiWritesNotEnabled
final BetaSpendLimitsAdminApiWritesNotEnabledErrorDetails asSpendLimitsAdminApiWritesNotEnabled()
The organization cannot retrieve, set or delete spend limits with an Admin API credential.
-
asUnsupportedCharset
final BetaUnsupportedCharsetErrorDetails asUnsupportedCharset()
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.
-
asPluginNameTaken
final BetaPluginNameTakenErrorDetails asPluginNameTaken()
The marketplace already holds this name.
plugin_idis the Plugin that holds it, and can be absent.
-
asSkillNameTaken
final BetaSkillNameTakenErrorDetails asSkillNameTaken()
One of the Plugin's skills has the name of an organization skill.
skill_nameis that name.
-
asRegistrationPending
final BetaRegistrationPendingErrorDetails asRegistrationPending()
The Plugin version was stored but is not yet usable in claude.ai.
plugin_idandplugin_version_ididentify what was stored.
-
asScanFailed
final BetaScanFailedErrorDetails asScanFailed()
The version in
plugin_version_iddid not pass its content scan, so it cannot be served.
-
asScanPending
final BetaScanPendingErrorDetails asScanPending()
The content scan of the version in
plugin_version_idis still running. Retry once the scan finishes.
-
asSlackChannelSetUpSettingsRefused
final BetaSlackChannelSetUpSettingsRefusedErrorDetails asSlackChannelSetUpSettingsRefused()
The request set the channel up, and
settingswas then refused. The channel stays set up with every setting unset.
-
asApiKeyScopeMissing
final BetaApiKeyScopeMissingErrorDetails asApiKeyScopeMissing()
The API key lacks the scope the request needs:
read:claude_tagfor a read,write:claude_tagfor a change.
-
asClaudeTagWritesNotEnabled
final BetaClaudeTagWritesNotEnabledErrorDetails asClaudeTagWritesNotEnabled()
Changes through the Claude Tag API are not enabled for the organization.
-
asComplianceConfigurationRestricted
final BetaComplianceConfigurationRestrictedErrorDetails asComplianceConfigurationRestricted()
The organization's compliance configuration does not let Claude Tag store anything new.
-
asOrganizationLevelScopedApiKeyRequired
final BetaOrganizationLevelScopedApiKeyRequiredErrorDetails asOrganizationLevelScopedApiKeyRequired()
The credential is not a scoped API key that is bound at the organization level.
-
asEnvironmentNotFound
final BetaEnvironmentNotFoundErrorDetails asEnvironmentNotFound()
settings.environment_idnames no Environment within the organization's reach.
-
asSlackChannelSetUpEnvironmentNotFound
final BetaSlackChannelSetUpEnvironmentNotFoundErrorDetails asSlackChannelSetUpEnvironmentNotFound()
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.
-
asSlackChannelSetUpSettingsConflict
final BetaSlackChannelSetUpSettingsConflictErrorDetails asSlackChannelSetUpSettingsConflict()
The request set the channel up, and something else then changed the channel or removed it. Nothing of
settingswas stored.
-
asBundleAttachmentNotSupported
final BetaBundleAttachmentNotSupportedErrorDetails asBundleAttachmentNotSupported()
The Bundle has an attachment this API does not support editing, so its instructions can be changed only in claude.ai.
-
asBundleOnCall
final BetaBundleOnCallErrorDetails asBundleOnCall()
This Bundle's instructions are managed in claude.ai and can't be changed through the API.
-
accept
final <T extends Any> T accept(ErrorDetails.Visitor<T> visitor)
Maps this instance's current variant to a value of type T using the given visitor.
Note that this method is not forwards compatible with new variants from the API, unless visitor overrides Visitor.unknown. To handle variants not known to this version of the SDK gracefully, consider overriding Visitor.unknown:
import com.anthropic.core.JsonValue; import java.util.Optional; Optional<String> result = errorDetails.accept(new ErrorDetails.Visitor<Optional<String>>() { @Override public Optional<String> visitAvailableToolsLimitExceeded(AvailableToolsLimitExceededErrorDetails availableToolsLimitExceeded) { return Optional.of(availableToolsLimitExceeded.toString()); } // ... @Override public Optional<String> unknown(JsonValue json) { // Or inspect the `json`. return Optional.empty(); } });
-
validate
final ErrorDetails validate()
Validates that the types of all values in this object match their expected types recursively.
This method is not forwards compatible with new types from the API for existing fields.
-
ofAvailableToolsLimitExceeded
final static ErrorDetails ofAvailableToolsLimitExceeded(AvailableToolsLimitExceededErrorDetails availableToolsLimitExceeded)
The tools available after a message exceed a limit on their number or their size.
-
ofClaudeCodeKeyCreatorNotMember
final static ErrorDetails ofClaudeCodeKeyCreatorNotMember(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.
-
ofClaudeCodeVersionTooOld
final static ErrorDetails ofClaudeCodeVersionTooOld(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.
-
ofCmekKeyDisabled
final static ErrorDetails ofCmekKeyDisabled(CmekKeyDisabledErrorDetails cmekKeyDisabled)
The workspace's customer-managed encryption key is disabled or revoked. Re-enable the key, then retry.
-
ofCmekKeyNetworkBlocked
final static ErrorDetails ofCmekKeyNetworkBlocked(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.
-
ofCompactionBlockAmbiguous
final static ErrorDetails ofCompactionBlockAmbiguous(CompactionBlockAmbiguousErrorDetails compactionBlockAmbiguous)
messagesholds more than onecompactionblock with content. Send only the block the conversation returned last.
-
ofCompactionBlockMisplaced
final static ErrorDetails ofCompactionBlockMisplaced(CompactionBlockMisplacedErrorDetails compactionBlockMisplaced)
The
compactionblock is not the first block of the conversation, or is in asystemmessage.
-
ofCompactionContentMismatch
final static ErrorDetails ofCompactionContentMismatch(CompactionContentMismatchErrorDetails compactionContentMismatch)
The
compactionblock'scontentdiffers from the text itssignaturerecorded.
-
ofCompactionIncompleteTurn
final static ErrorDetails ofCompactionIncompleteTurn(CompactionIncompleteTurnErrorDetails compactionIncompleteTurn)
The compaction request ends on an
assistantturn that is not finished.
-
ofCompactionNothingToSummarize
final static ErrorDetails ofCompactionNothingToSummarize(CompactionNothingToSummarizeErrorDetails compactionNothingToSummarize)
messagesholds nouserorassistantcontent to summarize or adopt.
-
ofCompactionSignatureInvalid
final static ErrorDetails ofCompactionSignatureInvalid(CompactionSignatureInvalidErrorDetails compactionSignatureInvalid)
The
compactionblock'ssignaturedoes not verify.
-
ofCompactionTooManyToolReferences
final static ErrorDetails ofCompactionTooManyToolReferences(CompactionTooManyToolReferencesErrorDetails compactionTooManyToolReferences)
The conversation references more distinct tools than a
compactionblock can record.
-
ofCompactionToolChangesMismatch
final static ErrorDetails ofCompactionToolChangesMismatch(CompactionToolChangesMismatchErrorDetails compactionToolChangesMismatch)
The
compactionblock'stool_changesdiffers from what was returned with the block.
-
ofOrganizationOnHold
final static ErrorDetails ofOrganizationOnHold(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.
-
ofRequestBodyEncodingInvalid
final static ErrorDetails ofRequestBodyEncodingInvalid(RequestBodyEncodingInvalidErrorDetails requestBodyEncodingInvalid)
The request body is not valid for its
Content-Encoding.
-
ofRequestBodyEncodingUnsupported
final static ErrorDetails ofRequestBodyEncodingUnsupported(RequestBodyEncodingUnsupportedErrorDetails requestBodyEncodingUnsupported)
The request's
Content-Encodingis not supported.
-
ofThreadAlreadyContinued
final static ErrorDetails ofThreadAlreadyContinued(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.
-
ofThreadContinueInFlight
final static ErrorDetails ofThreadContinueInFlight(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"}.
-
ofThreadFingerprintMismatch
final static ErrorDetails ofThreadFingerprintMismatch(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.
-
ofThreadUnsupportedRequest
final static ErrorDetails ofThreadUnsupportedRequest(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.
-
ofToolNameConflict
final static ErrorDetails ofToolNameConflict(ToolNameConflictErrorDetails toolNameConflict)
A tool made available in
messagestakes a name that an available tool of another kind, or of another MCP server, already holds.
-
ofToolReferenceUnresolved
final static ErrorDetails ofToolReferenceUnresolved(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.
-
ofUserProfileRequired
final static ErrorDetails ofUserProfileRequired(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.
-
ofLinkedOrganizationBillingUnavailable
final static ErrorDetails ofLinkedOrganizationBillingUnavailable(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.
-
ofLinkedOrganizationSpendLimitReached
final static ErrorDetails ofLinkedOrganizationSpendLimitReached(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.
-
ofUserProfileBillingNotAuthorized
final static ErrorDetails ofUserProfileBillingNotAuthorized(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.
-
ofUserProfileNotBillable
final static ErrorDetails ofUserProfileNotBillable(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.
-
ofThreadNotFound
final static ErrorDetails ofThreadNotFound(ThreadNotFoundErrorDetails threadNotFound)
No usable Thread state was found for
previous_message_id. Replay the full conversation withthread: {"type": "create"}to start a new Thread.
-
ofSkillReadBlockedUndecryptable
final static ErrorDetails ofSkillReadBlockedUndecryptable(SkillReadBlockedUndecryptableErrorDetails skillReadBlockedUndecryptable)
A custom skill the request names is stored under an encryption key state the workspace cannot currently decrypt.
-
ofRequestBodyTooLargeAfterDecoding
final static ErrorDetails ofRequestBodyTooLargeAfterDecoding(RequestBodyTooLargeAfterDecodingErrorDetails requestBodyTooLargeAfterDecoding)
The compressed request body exceeds the request size limit once decoded.
-
ofContractSpendLimitReached
final static ErrorDetails ofContractSpendLimitReached(ContractSpendLimitReachedErrorDetails contractSpendLimitReached)
The organization has reached the spend limit of its contract.
-
ofEnforcedSpendLimitReached
final static ErrorDetails ofEnforcedSpendLimitReached(EnforcedSpendLimitReachedErrorDetails enforcedSpendLimitReached)
The organization has crossed the monthly API usage threshold of its API tier.
-
ofRampLimitExceeded
final static ErrorDetails ofRampLimitExceeded(RampLimitExceededErrorDetails rampLimitExceeded)
The request would exceed a ramp limit, which caps how fast usage can grow. Retry after the time in the
retry-afterheader.
-
ofCmekKeyUnreachable
final static ErrorDetails ofCmekKeyUnreachable(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.
-
ofCompactionUnavailable
final static ErrorDetails ofCompactionUnavailable(CompactionUnavailableErrorDetails compactionUnavailable)
The compaction could not be completed for a transient server reason. Retry the request.
-
ofStorageQuotaExceeded
final static ErrorDetails ofStorageQuotaExceeded(StorageQuotaExceededErrorDetails storageQuotaExceeded)
The organization's file storage quota is exhausted. Delete files to free up space, then retry the upload.
-
ofFileNotDownloadable
final static ErrorDetails ofFileNotDownloadable(FileNotDownloadableErrorDetails fileNotDownloadable)
The file has
downloadable: false. Only files generated by a tool, such as the code execution tool, can be downloaded.
-
ofFileExpired
final static ErrorDetails ofFileExpired(FileExpiredErrorDetails fileExpired)
The file's
expires_athas passed, so its content is no longer available.
-
ofCmekContextUnavailable
final static ErrorDetails ofCmekContextUnavailable(CmekContextUnavailableErrorDetails cmekContextUnavailable)
The workspace's encryption settings could not be read, so the request was refused. Retry in a few minutes.
-
ofOrgApiKeyLimitExceeded
final static ErrorDetails ofOrgApiKeyLimitExceeded(OrgApiKeyLimitExceededErrorDetails orgApiKeyLimitExceeded)
The organization has reached its limit of active API keys.
-
ofWorkspaceApiKeyLimitExceeded
final static ErrorDetails ofWorkspaceApiKeyLimitExceeded(WorkspaceApiKeyLimitExceededErrorDetails workspaceApiKeyLimitExceeded)
The workspace has reached its limit of active API keys.
-
ofSandboxEgressRestricted
final static ErrorDetails ofSandboxEgressRestricted(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.
-
ofUserProfileNotFound
final static ErrorDetails ofUserProfileNotFound(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.
-
ofExternalKeyInWorkspacePolicy
final static ErrorDetails ofExternalKeyInWorkspacePolicy(ExternalKeyInWorkspacePolicyErrorDetails externalKeyInWorkspacePolicy)
The External Key can't be deleted or reconfigured while the organization's Workspace Policy lists it as an allowed key.
-
ofAlreadyMember
final static ErrorDetails ofAlreadyMember(AlreadyMemberErrorDetails alreadyMember)
The email address already belongs to a user in the organization. The message names the user.
-
ofCannotInviteEmailsWithUnverifiedDomains
final static ErrorDetails ofCannotInviteEmailsWithUnverifiedDomains(CannotInviteEmailsWithUnverifiedDomainsErrorDetails cannotInviteEmailsWithUnverifiedDomains)
The email address's domain is not one of the verified domains of the organization's parent organization.
-
ofEmailDomainNotAllowed
final static ErrorDetails ofEmailDomainNotAllowed(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.
-
ofInviteAlreadyExists
final static ErrorDetails ofInviteAlreadyExists(InviteAlreadyExistsErrorDetails inviteAlreadyExists)
A pending invite already exists for the email address. The message names the invite.
-
ofOrgMemberLimitExceeded
final static ErrorDetails ofOrgMemberLimitExceeded(OrgMemberLimitExceededErrorDetails orgMemberLimitExceeded)
The organization has reached the member limit that Anthropic set for it. Pending invites count toward the limit.
-
ofRbacGroupGrantsOwnerAccess
final static ErrorDetails ofRbacGroupGrantsOwnerAccess(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.
-
ofRbacGroupOwnerAccessUnconfirmed
final static ErrorDetails ofRbacGroupOwnerAccessUnconfirmed(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.
-
ofCannotRemoveLastMember
final static ErrorDetails ofCannotRemoveLastMember(CannotRemoveLastMemberErrorDetails cannotRemoveLastMember)
The user is the organization's only member. Add another member before removing this one.
-
ofConcurrentMembershipChange
final static ErrorDetails ofConcurrentMembershipChange(ConcurrentMembershipChangeErrorDetails concurrentMembershipChange)
Another change to the organization's members is in progress. Retry the request once it completes.
-
ofExternalKeyValidationFailed
final static ErrorDetails ofExternalKeyValidationFailed(ExternalKeyValidationFailedErrorDetails externalKeyValidationFailed)
The External Key failed Anthropic's validation, so the request was refused. The message gives the reason, if there is one.
-
ofExternalKeyValidationTimedOut
final static ErrorDetails ofExternalKeyValidationTimedOut(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.
-
ofKeyProfileMismatch
final static ErrorDetails ofKeyProfileMismatch(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.
-
ofWorkspacePolicyViolation
final static ErrorDetails ofWorkspacePolicyViolation(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.
-
ofWorkspacePolicyViolation
final static ErrorDetails ofWorkspacePolicyViolation(WorkspacePolicyField field)
Returns an immutable instance of ErrorDetails whose ofWorkspacePolicyViolation variant is built from the given required field.
-
ofExternalKeyChanged
final static ErrorDetails ofExternalKeyChanged(ExternalKeyChangedErrorDetails externalKeyChanged)
The external key changed while the request was validating it. Send the request again.
-
ofWorkspaceMemberLimitExceeded
final static ErrorDetails ofWorkspaceMemberLimitExceeded(WorkspaceMemberLimitExceededErrorDetails workspaceMemberLimitExceeded)
The workspace has reached the member limit that Anthropic set for it.
-
ofOrganizationTypeNotSupported
final static ErrorDetails ofOrganizationTypeNotSupported(OrganizationTypeNotSupportedErrorDetails organizationTypeNotSupported)
The endpoint does not support the organization's type. Each endpoint's description says which organization types it supports.
-
ofParentOrganizationRequired
final static ErrorDetails ofParentOrganizationRequired(ParentOrganizationRequiredErrorDetails parentOrganizationRequired)
The endpoint serves only organizations that belong to a parent organization, and this organization belongs to none.
-
ofRbacRoleNotFound
final static ErrorDetails ofRbacRoleNotFound(RbacRoleNotFoundErrorDetails rbacRoleNotFound)
No RBAC Role with this ID was found.
-
ofEnvironmentCreateDisabled
final static ErrorDetails ofEnvironmentCreateDisabled(BetaEnvironmentCreateDisabledErrorDetails environmentCreateDisabled)
Anthropic has turned off creating environments for this organization. Existing environments still work.
-
ofEnvironmentArchived
final static ErrorDetails ofEnvironmentArchived(BetaEnvironmentArchivedErrorDetails environmentArchived)
The environment is archived, so it cannot be updated.
-
ofInvalidConfigTypeChange
final static ErrorDetails ofInvalidConfigTypeChange(BetaInvalidConfigTypeChangeErrorDetails invalidConfigTypeChange)
config.typediffers from the environment's stored type, which cannot change after creation.
-
ofEnvironmentUpdateDisabled
final static ErrorDetails ofEnvironmentUpdateDisabled(BetaEnvironmentUpdateDisabledErrorDetails environmentUpdateDisabled)
Anthropic has turned off updating environments for this organization. Existing environments still work as they are.
-
ofHeartbeatPreconditionFailed
final static ErrorDetails ofHeartbeatPreconditionFailed(BetaHeartbeatPreconditionFailedErrorDetails heartbeatPreconditionFailed)
expected_last_heartbeatdoes not match the stored heartbeat, so another worker may hold the lease.
-
ofHeartbeatPreconditionFailed
final static ErrorDetails ofHeartbeatPreconditionFailed(BetaWorkLeaseState currentState)
Returns an immutable instance of ErrorDetails whose ofHeartbeatPreconditionFailed variant is built from the given required currentState.
-
ofInvalidMetadata
final static ErrorDetails ofInvalidMetadata(BetaInvalidMetadataErrorDetails invalidMetadata)
metadatahas too many keys, a key or value that is too long, or a reserved key. The message names each problem.
-
ofCannotSignOutPrimaryOwner
final static ErrorDetails ofCannotSignOutPrimaryOwner(BetaCannotSignOutPrimaryOwnerErrorDetails cannotSignOutPrimaryOwner)
The member is the organization's primary owner, whom no API key or token can sign out.
-
ofCannotSignOutSelf
final static ErrorDetails ofCannotSignOutSelf(BetaCannotSignOutSelfErrorDetails cannotSignOutSelf)
The member is the user the API key or token belongs to.
-
ofOrganizationNotEnrolledInBeta
final static ErrorDetails ofOrganizationNotEnrolledInBeta(BetaOrganizationNotEnrolledInBetaErrorDetails organizationNotEnrolledInBeta)
The beta that the endpoint requires is not enabled for the organization. The message names the beta value.
-
ofCannotSignOutManagedMember
final static ErrorDetails ofCannotSignOutManagedMember(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.
-
ofCannotSignOutMembershipAdmin
final static ErrorDetails ofCannotSignOutMembershipAdmin(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.
-
ofCannotSignOutOwner
final static ErrorDetails ofCannotSignOutOwner(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.
-
ofCannotSignOutPrivilegedMember
final static ErrorDetails ofCannotSignOutPrivilegedMember(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.
-
ofSpendLimitsAdminApiWritesNotEnabled
final static ErrorDetails ofSpendLimitsAdminApiWritesNotEnabled(BetaSpendLimitsAdminApiWritesNotEnabledErrorDetails spendLimitsAdminApiWritesNotEnabled)
The organization cannot retrieve, set or delete spend limits with an Admin API credential.
-
ofUnsupportedCharset
final static ErrorDetails ofUnsupportedCharset(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.
-
ofPluginNameTaken
final static ErrorDetails ofPluginNameTaken(BetaPluginNameTakenErrorDetails pluginNameTaken)
The marketplace already holds this name.
plugin_idis the Plugin that holds it, and can be absent.
-
ofSkillNameTaken
final static ErrorDetails ofSkillNameTaken(BetaSkillNameTakenErrorDetails skillNameTaken)
One of the Plugin's skills has the name of an organization skill.
skill_nameis that name.
-
ofSkillNameTaken
final static ErrorDetails ofSkillNameTaken(String skillName)
Returns an immutable instance of ErrorDetails whose ofSkillNameTaken variant is built from the given required skillName.
-
ofRegistrationPending
final static ErrorDetails ofRegistrationPending(BetaRegistrationPendingErrorDetails registrationPending)
The Plugin version was stored but is not yet usable in claude.ai.
plugin_idandplugin_version_ididentify what was stored.
-
ofScanFailed
final static ErrorDetails ofScanFailed(BetaScanFailedErrorDetails scanFailed)
The version in
plugin_version_iddid not pass its content scan, so it cannot be served.
-
ofScanFailed
final static ErrorDetails ofScanFailed(String pluginVersionId)
Returns an immutable instance of ErrorDetails whose ofScanFailed variant is built from the given required pluginVersionId.
-
ofScanPending
final static ErrorDetails ofScanPending(BetaScanPendingErrorDetails scanPending)
The content scan of the version in
plugin_version_idis still running. Retry once the scan finishes.
-
ofScanPending
final static ErrorDetails ofScanPending(String pluginVersionId)
Returns an immutable instance of ErrorDetails whose ofScanPending variant is built from the given required pluginVersionId.
-
ofSlackChannelSetUpSettingsRefused
final static ErrorDetails ofSlackChannelSetUpSettingsRefused(BetaSlackChannelSetUpSettingsRefusedErrorDetails slackChannelSetUpSettingsRefused)
The request set the channel up, and
settingswas then refused. The channel stays set up with every setting unset.
-
ofSlackChannelSetUpSettingsRefused
final static ErrorDetails ofSlackChannelSetUpSettingsRefused(String slackChannelId)
Returns an immutable instance of ErrorDetails whose ofSlackChannelSetUpSettingsRefused variant is built from the given required slackChannelId.
-
ofApiKeyScopeMissing
final static ErrorDetails ofApiKeyScopeMissing(BetaApiKeyScopeMissingErrorDetails apiKeyScopeMissing)
The API key lacks the scope the request needs:
read:claude_tagfor a read,write:claude_tagfor a change.
-
ofClaudeTagWritesNotEnabled
final static ErrorDetails ofClaudeTagWritesNotEnabled(BetaClaudeTagWritesNotEnabledErrorDetails claudeTagWritesNotEnabled)
Changes through the Claude Tag API are not enabled for the organization.
-
ofComplianceConfigurationRestricted
final static ErrorDetails ofComplianceConfigurationRestricted(BetaComplianceConfigurationRestrictedErrorDetails complianceConfigurationRestricted)
The organization's compliance configuration does not let Claude Tag store anything new.
-
ofOrganizationLevelScopedApiKeyRequired
final static ErrorDetails ofOrganizationLevelScopedApiKeyRequired(BetaOrganizationLevelScopedApiKeyRequiredErrorDetails organizationLevelScopedApiKeyRequired)
The credential is not a scoped API key that is bound at the organization level.
-
ofEnvironmentNotFound
final static ErrorDetails ofEnvironmentNotFound(BetaEnvironmentNotFoundErrorDetails environmentNotFound)
settings.environment_idnames no Environment within the organization's reach.
-
ofSlackChannelSetUpEnvironmentNotFound
final static ErrorDetails ofSlackChannelSetUpEnvironmentNotFound(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.
-
ofSlackChannelSetUpEnvironmentNotFound
final static ErrorDetails ofSlackChannelSetUpEnvironmentNotFound(String slackChannelId)
Returns an immutable instance of ErrorDetails whose ofSlackChannelSetUpEnvironmentNotFound variant is built from the given required slackChannelId.
-
ofSlackChannelSetUpSettingsConflict
final static ErrorDetails ofSlackChannelSetUpSettingsConflict(BetaSlackChannelSetUpSettingsConflictErrorDetails slackChannelSetUpSettingsConflict)
The request set the channel up, and something else then changed the channel or removed it. Nothing of
settingswas stored.
-
ofSlackChannelSetUpSettingsConflict
final static ErrorDetails ofSlackChannelSetUpSettingsConflict(String slackChannelId)
Returns an immutable instance of ErrorDetails whose ofSlackChannelSetUpSettingsConflict variant is built from the given required slackChannelId.
-
ofBundleAttachmentNotSupported
final static ErrorDetails ofBundleAttachmentNotSupported(BetaBundleAttachmentNotSupportedErrorDetails bundleAttachmentNotSupported)
The Bundle has an attachment this API does not support editing, so its instructions can be changed only in claude.ai.
-
ofBundleOnCall
final static ErrorDetails ofBundleOnCall(BetaBundleOnCallErrorDetails bundleOnCall)
This Bundle's instructions are managed in claude.ai and can't be changed through the API.
-
-
-
-