Updated on 2023-12-18 GMT+08:00

Status Codes

Table 1 Normal codes

Status Code

Message

Description

200

OK

Specifies the normal response code for the GET operation.

This code is returned when a response body is returned for the POST operation.

204

No Content

Specifies the normal response code for the DELETE operation.

This code is returned when no response body is returned for the POST operation.

Table 2 Error codes

Status Code

Error Code

Description

Error Message

Measure

400

VPC.1801

The ID is incorrect.

resource id is invalid/Getting id is invalid.

Use a correct resource ID.

400

VPC.1801

An action error occurs.

action is invalid.

Ensure that the value of action is create or delete.

400

VPC.1801

The key length is invalid.

Tag length is invalid. The key length must be in range [1,36] and value in range [0,43]

Input a valid key.

400

VPC.0007

The project ID is incorrect.

urlTenantId is not equal token TenantId.

Check the project ID.

401

VPC.0008

The token in the request is invalid or the request does not contain the token.

Invalid token in the header./Authorization information is wrong.

Check whether the token is valid.

400

VPC.1801

The value length is invalid.

Tag length is invalid. The key length must be in range [1,36] and value in range [0,43]

Input a valid value.

400

VPC.1801

The key or value contains invalid characters.

InvalidInput/Tag value xxx is invalid.

Check the validity of the key or value.

400

VPC.1801

The key or value is left blank.

Tag xxx can not be null.

Check whether the key or value is left blank.

400

VPC.1801

The tag is null.

Tag can not be null.

Check whether the tag is null.

400

VPC.1801

A resource type error occurs.

Resource xxx is invalid.

Ensure that the value of resource_type is loadbalancers or listeners.

400

VPC.1801

The total number of tags added at a time exceeds 10.

number of tags exceeds max unm of 10.

Reduce the number of tags.

400

VPC.1814

The total number of existing tags and newly added tags exceeds 10.

Invalid input for operation: resource_id: XXXX, number of tags exceed max num of 10.

Reduce the number of tags.

400

VPC.1814

The key values of newly added tags are duplicate.

Invalid input for operation: tags key is duplicated.

Change the tag values.

400

VPC.1814

The resource ID does not exist.

Resource XXX XXX could not be found.

Check whether the resource is available.

400

VPC.1814

The specified key to be deleted does not exist, or the key is an empty string.

The resource could not be found.

Enter a correct key and send the request again.

400

VPC.1814

More than 10 tags are added to a specified resource.

Invalid input for operation:resource_id:xxx, number of tags exceeds max num of 10.

Each resource supports up to 10 tags.

400

VPC.1801

Tags are duplicate.

Tag key is repeated.

Delete duplicate tags and resend the request.

500

-

The request format is incorrect.

Internal Server Error.

Use the correct request body format.