Updated on 2026-07-22 GMT+08:00

Error Codes

If an API fails to be called, an error code, instead of the service data, is returned. The returned error code can be used to identify the failure cause. In the HTTP protocol, a 4xx or 5xx response will be returned when an error occurs. The response contains the specific error code and information. If you are unable to identify the cause of an error, contact customer service and provide the error code so that we can help you solve the problem as soon as possible.

Error Response Body Format

If an error occurs during API calling, an error code and a message will be displayed. The following shows an error response body.
{
    "error_msg": "attached policies per agency limit exceeded",
    "error_code": "PAP5.0003",
    "request_id": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
}

In the response body, error_code is an error code, error_msg provides information about the error, and request_id indicates the request ID.

In particular, if an error occurs due to lack of permissions, the error response body is as follows:

{
    "error_msg": "access denied: xxx...xxx",
    "error_code": "PAP5.0001",
    "request_id": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
    "encoded_authorization_message": "xxx...xxx"
}

In the response body, encoded_authorization_message is an additional field provided in this scenario, and indicates the encrypted authentication failure information. It can be decrypted using the STS5 decryption API.

Error Code Description

Table 1 Error codes

Status Code

Error Code

Error Message

Description

Measure

400

PAP5.0010

invalid marker

Invalid marker.

Check the value of the marker field.

400

PAP5.0011

malformed policy document

Incorrect identity policy or trust policy.

Check the value of the policy document field.

400

PAP5.0029

invalid agency name

Invalid trust agency name.

Check the value of the agency name field.

400

PAP5.0030

invalid path

Invalid path.

Check the value of the path field.

400

PAP5.0033

duplicate key

Duplicate key value.

Check the request or contact technical support.

400

PAP5.0036

tag non-compliant

The tag value conflicts with preset tag policies.

Check the request or contact technical support.

400

PAP5.0038

This operation is only supported by v5 agencies

This operation is only supported by trust agencies.

Check the request or contact technical support.

400

PAP5.0040

invalid caller

Invalid caller.

Check whether the caller is the IAM user.

400

PAP5.0041

invalid serial number

Invalid serial number.

Check the value of the serial number field.

400

PAP5.0060

ip address not in ip range

The IP address is not within the IP address range.

Please verify whether the client IP address is within the IP address range specified in the request body.

400

PAP5.0070

invalid content type

Invalid content type.

Check the X-Content-Type request header value.

400

PAP5.0257

the input is invalid

Invalid request body.

Check the request or contact technical support.

400

PAP5.0046

missing header `x-user-profile`

The x-user-profile is missing in the request header.

Check the request or contact technical support.

400

PAP5.0121

OIDC provider already exists.

OIDC identity provider already exists.

Check the existing provider list to ensure there are no duplicates.

400

PAP5.0122

No such OIDC provider.

OIDC identity provider not found.

Check whether the OIDC identity provider exists.

400

PAP5.0123

OIDC providers limit exceeded.

Maximum number of OIDC identity providers exceeded.

Check the number of configured OIDC identity providers.

400

PAP5.0124

Thumbprints cannot be empty.

Fingerprint required.

Verify that the fingerprint is not empty.

400

PAP5.0125

Client id already exists.

Client ID already exists.

Check the existing client IDs to ensure there are no duplicates.

400

PAP5.0126

Client id not found.

Client ID not found.

Check whether the client ID is correct.

400

PAP5.0127

Cannot remove the last client id.

Cannot remove the last client ID.

Ensure that at least one client ID exists.

400

PAP5.0128

Invalid OIDC cert chain.

Invalid OIDC certificate chain.

Check whether the OIDC certificate chain is correct.

400

PAP5.0129

Client ids cannot exceed 100.

Only up to 100 client IDs allowed.

Ensure that the number of client IDs is within the allowed range.

400

PAP5.0130

Failed to retrieve or validate OIDC discovery document.

Cannot obtain or verify the OIDC discovery file.

Ensure that the OIDC discovery file is correct.

400

PAP5.0131

Failed to retrieve or validate JWK set.

Cannot obtain or verify the JWKS.

Check whether the JWKS is correct.

400

PAP5.0136

Saml provider already exists.

SAML identity provider already exists.

Change the SAML name.

400

PAP5.0137

No such saml provider.

SAML identity provider not found.

Check whether the SAML identity provider exists.

400

PAP5.0138

Saml providers limit exceeded.

Maximum number of SAML identity providers exceeded.

Check the number of configured SAML identity providers.

400

PAP5.0139

Private key not found.

SAML decryption private key not found.

Check whether the SAML decryption private key exists.

400

PAP5.0140

Invalid saml metadata.

Invalid SAML metadata file.

Check the SAML metadata file.

400

PAP5.0141

Invalid saml private key.

Invalid SAML decryption private key.

Check the SAML decryption private key.

400

PAP5.0142

Private key limit exceeded.

Maximum number of SAML decryption private keys exceeded.

Delete existing SAML decryption private keys before adding new ones.

400

PAP5.0143

Assertion encryption need private key.

SAML decryption private key required for assertion encryption.

Add a SAML decryption private key.

403

PAP5.0001

access denied: %s

Access denied.

Check whether this operation is allowed.

404

PAP5.0012

no such agency

Agency or trust agency not found.

Check the request or contact technical support.

404

PAP5.0014

no such authorization schema

Authorization summary not found.

Check the request or contact technical support.

404

PAP5.0015

no such deletion task

Deletion task not found.

Check the request or contact technical support.

404

PAP5.0016

no such group

User group not found.

Check the request or contact technical support.

404

PAP5.0018

no such policy

Identity policy not found.

Check the request or contact technical support.

404

PAP5.0019

no such policy attachment

Identity policy attachment record not found.

Check the request or contact technical support.

404

PAP5.0020

no such policy version

Identity policy version not found.

Check the request or contact technical support.

404

PAP5.0021

no such user

IAM user not found.

Check the request or contact technical support.

404

PAP5.0022

no such service linked agency

Service-linked agency not found.

Check the request or contact technical support.

404

PAP5.0023

no such service principal

Service principal not found.

Check the request or contact technical support.

404

PAP5.0034

no such domain

Tenant not found.

Check the request or contact technical support.

404

PAP5.0037

Resource tag not found

Resource tag not found.

Check the request or contact technical support.

409

PAP5.0003

attached policies per agency limit exceeded

Maximum identity policy attachments reached for a single agency or trust agency.

Detach unnecessary identity policies from the agency or trust agency.

409

PAP5.0004

attached policies per group limit exceeded

Maximum identity policy attachments reached for a user group.

Detach unnecessary identity policies from the user group.

409

PAP5.0005

attached policies per user limit exceeded

Maximum identity policy attachments reached for an IAM user.

Detach unnecessary identity policies from the IAM user.

409

PAP5.0006

concurrent modification

Concurrent modifications.

Try again later.

409

PAP5.0007

delete conflict: %s

Conflict exists and deletion failed.

Resolve the conflict.

409

PAP5.0024

policies limit exceeded

Maximum custom identity policies reached.

Delete unnecessary custom identity policies.

409

PAP5.0025

policy already exists

Identity policy already exists.

Check the request or contact technical support.

409

PAP5.0026

policy attachment already exists

Identity policy already attached.

Check the request or contact technical support.

409

PAP5.0027

policy size limit exceeded

Maximum number of bytes %d of an identity policy or trust policy reached (excluding blank characters).

Simplify the identity policy or trust policy.

409

PAP5.0028

versions per policy limit exceeded

Maximum versions reached for an identity policy.

Delete unnecessary identity policy versions.

409

PAP5.0031

agency already exists

The agency or trust agency already exists.

Check the request or contact technical support.

409

PAP5.0035

tags limit exceeded

Maximum tags reached.

Check the request or contact technical support.

409

PAP5.0039

mfa device already exists

The virtual MFA device already exists.

Check the request or contact technical support.

409

PAP5.0042

user already exists

The IAM user already exists.

Check the request or contact technical support.

409

PAP5.0043

group already exists

The user group already exists.

Check the request or contact technical support.

409

PAP5.0044

user already in group

The IAM user already exists in the user group.

Check the request.

409

PAP5.0045

login profile already exists

The login information already exists.

Check the request or contact technical support.

403

STS5.1001

you are not authorized to perform this operation

The request is rejected due to insufficient permissions.

Check whether you have required permissions.

400

STS5.1102

the duration seconds exceed the max session duration

The session duration in the request exceeds the maximum session duration.

Set the request session duration less than 3600 seconds.

400

STS5.1301

the encoded message is malformed or invalid

The encoding format is incorrect or invalid.

Specify the correct encoding format information.

400

STS5.1901

the IDP provider account does not match the agency account

Identity provider account does not match trust agency account.

Provide correct identity provider and trust agency information.

404

STS5.1902

the SAML provider URN not found

SAML identity provider URN not found.

Provide the correct SAML identity provider URN.

400

STS5.1903

the SAML metadata is invalid

Invalid SAML metadata.

When creating a SAML identity provider, provide correct SAML metadata.

400

STS5.1904

the SAML assertion is invalid

Invalid SAML assertion.

Check the SAML assertion based on the returned err_msg.

400

STS5.1905

the number of session managed policy ids exceeds the limit

Session management policy ID count exceeds the limit.

Check whether the combined number of session policy IDs (SessionPolicyIds) in the SAML assertion and policy IDs (policy_ids) in the request parameters exceeds the limit of 20.

400

STS5.1906

the SAML assertion is required encrypted

SAML assertion must be encrypted.

Provide the encrypted SAML assertion.

400

STS5.1907

the agency in SAML assertion is invalid

Invalid trust agency in the SAML assertion.

Check whether the agency in the SAML assertion matches the request.

400

STS5.2001

invalid oidc id token

Invalid OIDC token.

Check the OIDC token based on the returned err_msg.

404

STS5.2002

oidc provider URN not found

OIDC identity provider URN not found.

Provide the correct OIDC identity provider URN.

500

STS5.2003

invalid account id

Invalid account ID.

Check the request or contact technical support.

400

STS5.2004

the cert chain from jwks_uri is invalid

Invalid certificate chain in jwks_uri.

Ensure that your jwks_uri is correct and accessible.

400

STS5.2005

the thumbprint from jwks is inconsistent with the oidc provider's thumbprint

The certificate fingerprint from jwks_uri does not match the fingerprint of the OIDC identity provider.

Ensure that the certificate fingerprint from jwks_uri matches the fingerprint in the identity provider details.

500

STS5.2006

supports domestic and international users only

The account type is not supported.

Check your account information. Currently, only accounts of Huawei Cloud Chinese mainland and international websites are supported.

400

STS5.2007

the jwk set is invalid

Invalid jwk set content.

Check the jwk set content based on the returned err_msg.

400

STS5.2008

connection error

Connection error.

Ensure that your well-known URI and jwks_uri are correct and accessible.

404

AccessAnalyzer.1001

Analyzer with id %s cannot be found.

Analyzer with ID "%s" not found.

Check whether the analyzer ID is correct.

400

AccessAnalyzer.1002

The marker is invalid.

Invalid pagination marker.

Check whether the pagination marker is correct.

400

AccessAnalyzer.1003

The number of tags attached to a resource has exceeded the maximum limit.

The maximum number of tags attached to resources has been reached.

Check the number of tags according to the returned error message.

404

AccessAnalyzer.1004

Finding with id %s cannot be found.

Analysis findings with ID "%s" not found.

Contact technical support for specific causes.

409

AccessAnalyzer.1005

The target of the operation is currently being modified by a different request, try again later.

The object is being modified by another request. Try again later.

Try again later.

404

AccessAnalyzer.1006

Archive rule with id %s cannot be found.

Archive rule with ID "%s" not found.

Contact technical support for specific causes.

400

AccessAnalyzer.1007

The finding filter with key %s is invalid.

Invalid search criterion "%s" for the findings.

Enter valid search criteria.

400

AccessAnalyzer.1008

The request of the update findings operation is invalid.

Invalid request for updating the findings.

Contact technical support for specific causes.

403

AccessAnalyzer.1009

The request is forbidden: %s.

Access denied "%s".

Contact technical support for specific causes.

400

AccessAnalyzer.1010

The resource urn %s is invalid.

Invalid resource URN "%s".

Enter a correct resource URN.

400

AccessAnalyzer.1011

The resource owner account %s is invalid.

Invalid resource owner account "%s".

Enter a correct account.

400

AccessAnalyzer.1012

The number of analyzers for account has exceeded the maximum limit.

The maximum number of account-level analyzers has been reached.

Check the number of analyzers according to the returned error message.

400

AccessAnalyzer.1013

Missing %s parameter in the request.

Parameter "%s" is missing in the request.

Check the request parameter according to the returned error message.

400

AccessAnalyzer.1014

The number of archive rules of an analyzer has exceeded the maximum limit.

The maximum number of archive rules for the analyzer has been reached.

Check the number of archive rules according to the returned error message.

400

AccessAnalyzer.1015

Invalid resource type in the request.

Invalid resource type of the policy in the request parameters.

Enter a correct resource type for the policy.

400

AccessAnalyzer.1016

Existing an archive rule with same name.

An archive rule with the same name already exists.

Check the archive rule according to the returned error message.

400

AccessAnalyzer.1017

Existing an analyzer tag with same key.

The key of the tag attached to the resource already exists.

Check the tag key according to the returned error message.

404

AccessAnalyzer.1018

Preview with id s% cannot be found.

Preview with ID "%s" not found.

Check the preview ID according to the returned error message.

409

AccessAnalyzer.1019

Preview with id %s does not have a completed status.

Preview with ID "%s" is not completed.

Check the preview ID according to the returned error message.

400

AccessAnalyzer.1020

Only support one resource configuration.

Only one resource configuration item is supported.

Check the resource configuration item according to the returned error message.

400

AccessAnalyzer.1021

The resource type %s is not supported yet.

Resource type "%s" is not supported.

Check the resource type according to the returned error message.

400

AccessAnalyzer.1022

The number of analyzers for organization has exceeded the maximum limit.

The maximum number of organization-level analyzers has been reached.

Check the number of organization-level analyzers according to the returned error message.

400

AccessAnalyzer.1023

Only management account or delegated administrator can create organization analyzer.

Only the organization administrator and delegated administrator can create organization-level analyzers.

Check the required permissions according to the returned error message.

409

AccessAnalyzer.1024

Analyzer is %s.

The analyzer status is %s.

Check the analyzer status according to the returned error message.

400

AccessAnalyzer.1025

The analyzer type %s is invalid.

Analyzer "%s" does not support this operation.

Check the access analysis preview function according to the returned error message.

400

AccessAnalyzer.1026

Missing %s parameter in the request.

Parameter "%s" is missing in the request.

Check the request parameters according to the returned error message.

400

AccessAnalyzer.1027

The account has been suspended %s.

The account "%s" has been frozen.

Check the account status according to the returned error message.

400

AccessAnalyzer.1028

The account has been restricted %s.

The account "%s" has been restricted.

Check the account status according to the returned error message.

400

AccessAnalyzer.1031

Please check no new access error: %s.

Check whether there is new access error "%s".

Check the policy according to the returned error message.

400

AccessAnalyzer.1032

Please don't check no new access error on the deny statement.

A policy with only deny statements cannot be used to check for new access.

Check the policy according to the returned error message.