Common Headers and Error Responses

CSN

  • API Reference
    • API function release records
    • Appendix
    • Bandwidth Package Related
      • Bandwidth package price inquiry
      • Bandwidth upgrade-downgrade for the bandwidth package
      • Bind a bandwidth package to a Cloud Smart Network
      • Create bandwidth package
      • Delete bandwidth package
      • Query bandwidth package list
      • Query the specified bandwidth package details
      • Unbind a bandwidth package from a Cloud Smart Network
      • Update bandwidth package
    • Cloud Smart Network Related
      • Create a Cloud Smart Network
      • Delete a Cloud Smart Network
      • Network instances loaded by the Cloud Smart Network
      • Network instances unloaded by the Cloud Smart Network
      • Query Cloud Smart Network details
      • Query Cloud Smart Network instance list
      • Query the list of Cloud Smart Network
      • Update a Cloud Smart Network
    • Common Headers and Error Responses
    • General Description
    • Ingress Management Related Interfaces
      • Add a routing entry
      • Create affiliation
      • Create learning relationship
      • Delete a learning relationship
      • Delete a routing entry
      • Delete an association relationship
      • Query association relationships
      • Query learning relationships
      • Query route table list
      • Query routing entries
    • Interface Overview
    • Region Bandwidth Related Interfaces
      • Create cross-region bandwidth
      • Delete cross-region bandwidth
      • Query cross-region bandwidth
      • Query the cross-region bandwidth of the specified Cloud Smart Network
      • Update cross-region bandwidth
    • Service domain
    • TGW Related Interfaces
      • Query routing entries of a TGW
      • Query TGW list
      • Update TGW information
  • FAQs
    • Consultation
  • Function Release Records
  • Operation guide
    • Cross-Account Authorization Management
      • Cancel Authorized Network Instance
      • Create Authorized Network Instance
      • Delete Authorized Network Instance
      • View Authorized Network Instance
    • Cross-Region Bandwidth Package Management
    • CSN Instance
      • Create CSN Instance
      • Delete CSN Instance
      • Modify CSN Instance
    • Identity and access management
    • Monitor and Operations
      • CSN Instance Diagnosis
    • Network instance
      • Add Cross-Account Network Instance
      • Add Local Account Network Instance
      • Adjust Network Instance Bandwidth
      • Uninstall Network Instance
    • Region Bandwidth Management
      • Adjust Region Bandwidth
      • Create cross-region bandwidth
      • Delete cross-region bandwidth
    • Route management
      • Association Relationship
        • Create affiliation
        • Delete affiliation
      • Custom route tables
        • Create custom route table
        • Delete custom route table
        • View Custom Route Table
      • Learning Relationship
        • Add Custom Route Entry
        • Create learning relationship
        • Delete Custom Route Entry
        • Delete learning relationship
        • Publish and Revoke Network Instance Route
        • View Route Entry
    • Tag Management
  • Product Description
    • Application scenarios
    • Introduction
    • Usage restrictions
  • Product pricing
  • SDK
    • GO-SDK
      • Bandwidth package
      • CSN Instance
      • Exception handling
      • Initialization
      • Install
      • Overview
      • Region Bandwidth
      • Route management
      • TGW
    • Java-SDK
      • CSN
      • Exception handling
      • Initialization
      • Install the SDK Package
      • Overview
      • Version history
    • Python-SDK
      • Bandwidth package
      • CSN Instance
      • Initialization
      • Region Bandwidth
      • Route management
      • TGW
  • Service Level Agreement (SLA)
    • Cloud Smart Network Service Level Agreement SLA
  • Typical Practices
    • CSN supports VPC custom route tables for secure traffic access
    • Multi-IDC Disaster Recovery via Cloud Smart Network
    • Multi-IDC Interconnection via Cloud Smart Network
    • Private Network VPC Interconnection with Edge Network
All documents
menu
No results found, please re-enter

CSN

  • API Reference
    • API function release records
    • Appendix
    • Bandwidth Package Related
      • Bandwidth package price inquiry
      • Bandwidth upgrade-downgrade for the bandwidth package
      • Bind a bandwidth package to a Cloud Smart Network
      • Create bandwidth package
      • Delete bandwidth package
      • Query bandwidth package list
      • Query the specified bandwidth package details
      • Unbind a bandwidth package from a Cloud Smart Network
      • Update bandwidth package
    • Cloud Smart Network Related
      • Create a Cloud Smart Network
      • Delete a Cloud Smart Network
      • Network instances loaded by the Cloud Smart Network
      • Network instances unloaded by the Cloud Smart Network
      • Query Cloud Smart Network details
      • Query Cloud Smart Network instance list
      • Query the list of Cloud Smart Network
      • Update a Cloud Smart Network
    • Common Headers and Error Responses
    • General Description
    • Ingress Management Related Interfaces
      • Add a routing entry
      • Create affiliation
      • Create learning relationship
      • Delete a learning relationship
      • Delete a routing entry
      • Delete an association relationship
      • Query association relationships
      • Query learning relationships
      • Query route table list
      • Query routing entries
    • Interface Overview
    • Region Bandwidth Related Interfaces
      • Create cross-region bandwidth
      • Delete cross-region bandwidth
      • Query cross-region bandwidth
      • Query the cross-region bandwidth of the specified Cloud Smart Network
      • Update cross-region bandwidth
    • Service domain
    • TGW Related Interfaces
      • Query routing entries of a TGW
      • Query TGW list
      • Update TGW information
  • FAQs
    • Consultation
  • Function Release Records
  • Operation guide
    • Cross-Account Authorization Management
      • Cancel Authorized Network Instance
      • Create Authorized Network Instance
      • Delete Authorized Network Instance
      • View Authorized Network Instance
    • Cross-Region Bandwidth Package Management
    • CSN Instance
      • Create CSN Instance
      • Delete CSN Instance
      • Modify CSN Instance
    • Identity and access management
    • Monitor and Operations
      • CSN Instance Diagnosis
    • Network instance
      • Add Cross-Account Network Instance
      • Add Local Account Network Instance
      • Adjust Network Instance Bandwidth
      • Uninstall Network Instance
    • Region Bandwidth Management
      • Adjust Region Bandwidth
      • Create cross-region bandwidth
      • Delete cross-region bandwidth
    • Route management
      • Association Relationship
        • Create affiliation
        • Delete affiliation
      • Custom route tables
        • Create custom route table
        • Delete custom route table
        • View Custom Route Table
      • Learning Relationship
        • Add Custom Route Entry
        • Create learning relationship
        • Delete Custom Route Entry
        • Delete learning relationship
        • Publish and Revoke Network Instance Route
        • View Route Entry
    • Tag Management
  • Product Description
    • Application scenarios
    • Introduction
    • Usage restrictions
  • Product pricing
  • SDK
    • GO-SDK
      • Bandwidth package
      • CSN Instance
      • Exception handling
      • Initialization
      • Install
      • Overview
      • Region Bandwidth
      • Route management
      • TGW
    • Java-SDK
      • CSN
      • Exception handling
      • Initialization
      • Install the SDK Package
      • Overview
      • Version history
    • Python-SDK
      • Bandwidth package
      • CSN Instance
      • Initialization
      • Region Bandwidth
      • Route management
      • TGW
  • Service Level Agreement (SLA)
    • Cloud Smart Network Service Level Agreement SLA
  • Typical Practices
    • CSN supports VPC custom route tables for secure traffic access
    • Multi-IDC Disaster Recovery via Cloud Smart Network
    • Multi-IDC Interconnection via Cloud Smart Network
    • Private Network VPC Interconnection with Edge Network
  • Document center
  • arrow
  • CSN
  • arrow
  • API Reference
  • arrow
  • Common Headers and Error Responses
Table of contents on this page
  • Common header specifications
  • Error response
  • BCE global error codes
  • CSN error return codes

Common Headers and Error Responses

Updated at:2025-11-11

Common header specifications

Common request headers

Common header Description
Authorization Include both the Access Key and the request signature.
Content-Type application/json; charset=utf-8。
x-bce-date A string representing the date that complies with API specifications.

The standard HTTP protocol header fields are not included here. Common header fields are mandatory and will appear in every CSN API. For POST, PUT, DELETE, or other request types, include the request data in the request body.

Common response header

Common header Description
Content-Type application/json; charset=utf-8。
x-bce-request-id These are generated by the CSN backend and automatically added to the response header fields.

Error response

If an error occurs during CSN access, the corresponding error code and error details will be returned by CSN to assist users in identifying and addressing the issue. For request errors, detailed error information is provided in the Response Body using the format below:

Parameter name Type Description
code String Error code
message String Error description
requestId String Request ID of this request

Example:

Plain Text
1{
2    "code": "NoSuchObject",
3    "message": "account not exist",
4    "requestId": "c4abab14-ebc4-4eb0-85d2-03c4d51eed18"
5}

BCE global error codes

Error return code Error message Status code Description
AccessDenied Access denied. 403Forbidden You do not have permission to access this resource.
QualifyNotPass The User has not pass qualify. 403 The account has not passed certification
InappropriateJSON The JSON you provided was well-formed and valid, but not appropriate for this operation. 400 Bad Request The JSON format in the request is correct but contains semantic errors. For example, a required field might be missing, or the value type is incorrect. To ensure compatibility, unrecognized items will be ignored, and this type of error will not be returned.
InternalError We encountered an internal error Please try again. 500 Internal Server Error All other undefined errors. This should not be used if there are clearly corresponding errors of other types, including both general and service-specific errors.
InvalidAccessKeyId The Access Key ID you provided does not exist in our records. 403Forbidden The Access Key ID does not exist.
InvalidHTTPAuthHeader The Access Key ID you provided does not exist in our records. 400 BadRequest The authorization header format is invalid.
InvalidHTTPRequest There was an error in the body of your HTTP request. 400 Bad Request The HTTP body format is invalid, for example, it could be due to incompatible Encoding.
InvalidURI Could not parse the specified URI. 400 Bad Request The URI format is invalid. For instance, specific service keywords do not match. For problems like ID mismatches, more specific error codes, such as NoSuchKey, should be provided.
MalformedJSON The JSON you provided was not well-formed. 400 BadRequest The JSON format is invalid.
InvalidVersion The API version specified was invalid. 404 NotFound The URI version number is invalid.
OptInRequired A subscription for the service is required. 403Forbidden The corresponding service has not been activated.
PreconditionFailed The specified If-Match header doesn’tmatch the ETag header. 412PreconditionFailed Please refer to the Etag for more information.
RequestExpired Request has expired. Timestamp date is . 400 BadRequest Request timeout. Replace with x-bce-date. If the request contains only the Date header, convert it to datetime.
IdempotentParameterMismatch The request uses the same client token asa previous, but non-identical request. 403Forbidden The API parameters do not match for the same clientToken.
SignatureDoesNotMatch The request signature we calculated does not match the signature you provided. Check yourSecret Access Key and signing method. Consultthe service documentation for details. 400 Bad Request The signature in the Authorization header does not match the server's verification.

CSN error return codes

Error code Error description HTTP status code Chinese explanation
CsnIdInvalidException The csnId is invalid 400 Invalid Cloud Smart Network ID
CsnNotFoundException The csn instance is not exist 404 Cloud Smart Network does not exist
InstanceIdInvalidException The instanceId is invalid 400 Invalid network instance ID
GrantNotFoundException The grant instance is not exist 404 Authorization rule for the network instance does not exist
RegionInvalidException The region is not exist 400 Invalid region
GrantStatusNotAllowDeleteException The status of grant is not allow to delete 400 Authorization rule cannot be deleted
CsnNotAllowDeleteException The csn has bound csnBp 400 Cloud Smart Network bound to a bandwidth package cannot be deleted
DbException The db has error 400 DB anomaly
DuplicateException The resource has exist 400 Resource already exists
DetachInstanceException The instance status is not allow detach 400 The current status of the instance does not support detachment
CsnRouteRuleNotFoundException The csn route rule is not exist 404 Cloud Smart Network routing rule does not exist
CsnRouteRuleIdBlankException The routeRuleId is not allow empty 400 Routing rule ID cannot be empty
RouteTableIdInvalid The csnRouteTableId is invalid 400 Invalid route table ID
CsnPropagationDuplicate The csnRouteTable propagation is already exist 400 Route table learning relationship already exists
CsnDynamicRuleNotAllowOperate The csnRouteRule is dynamic,not allow operate 400 Operation on dynamic routes is not supported
NotAllowRevokeGrant The instance has attached a csn,not allow revoke grant 400 The network instance has been loaded into Cloud Smart Network; the authorization rule cannot be deleted

Previous
Cloud Smart Network Related
Next
General Description