Updated on 2024-12-05 GMT+08:00

Introduction

If an error occurs during API calling, no results will be returned. Identify the causes of errors based on the error codes of each API. If an error occurs in API calling, HTTP status code 4xx or 5xx is returned. The response body 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.

Format of an Error Response Body

If an error occurs during API calling, an error code and a message will be displayed. The following shows an error response body.

[
    {
        "errorCode": "SVCSTG.SWR.4001048",
        "errorMessage": "Failed to get Token from Context",
        "detail": ""
    }
]

In the preceding information, errorCode indicates an error code, errorMessage indicates error description, and detail provides error details.

Error Codes

If an error code starting with APIGW is returned after you call an API, rectify the fault by referring to the instructions provided in API Gateway Error Codes.

Status Code

Error Code

Description

Solution

401

SVCSTG.SWR.4010000

Authentication failed. The possible cause is that the token has expired.

Obtain a new token and try again later.

500

SVCSTG.SWR.5000001

Internal server error: Failed to obtain the application description.

Rectify the issue based on the error details or contact technical support.

500

SVCSTG.SWR.5000002

Internal server error: Failed to obtain the image information.

Rectify the issue based on the error details or contact technical support.

500

SVCSTG.SWR.5000003

Internal server error: Failed to obtain the image list.

Rectify the issue based on the error details or contact technical support.

404

SVCSTG.SWR.4040004

The software package does not exist.

Check whether the package exists. If not, obtain it.

500

SVCSTG.SWR.5000005

Internal server error: Deletion failed.

Rectify the issue based on the error details or contact technical support.

409

SVCSTG.SWR.4090006

The image already exists.

Check whether the image already exists.

500

SVCSTG.SWR.5000007

Internal server error: Obtain failed.

Rectify the issue based on the error details or contact technical support.

500

SVCSTG.SWR.5000008

Internal server error: Failed to obtain the list.

Rectify the issue based on the error details or contact technical support.

404

SVCSTG.SWR.4040009

The image list cannot be found.

Rectify the issue based on the error details or contact technical support.

404

SVCSTG.SWR.4040010

The image does not exist.

Check whether the image exists.

500

SVCSTG.SWR.5000011

Internal server error: Update failed.

Rectify the issue based on the error details or contact technical support.

406

SVCSTG.SWR.4060074

The organization cannot be deleted because there are images in it.

Delete images from the organization first.

400

SVCSTG.SWR.4000013

Invalid digest.

Use an invalid digest.

400

SVCSTG.SWR.4000014

Invalid API parameters.

Modify the request body based on the error details and the SWR API documentation, or contact technical support.

400

SVCSTG.SWR.4000015

Invalid package name.

Modify the request body based on the error details and the SWR API documentation, or contact technical support.

400

SVCSTG.SWR.4000016

Invalid version number.

Modify the request body based on the error details and the SWR API documentation, or contact technical support.

500

SVCSTG.SWR.5000017

Internal server error: Application signing is disabled.

Rectify the issue based on the error details or contact technical support.

500

SVCSTG.SWR.5000018

Internal server error: Failed to read public keys.

Rectify the issue based on the error details or contact technical support.

500

SVCSTG.SWR.5000019

Internal server error: Failed to find local files.

Rectify the issue based on the error details or contact technical support.

500

SVCSTG.SWR.5000020

Internal server error: Failed to obtain session locks.

Rectify the issue based on the error details or contact technical support.

500

SVCSTG.SWR.5000021

Internal server error: Failed to synchronize files.

Rectify the issue based on the error details or contact technical support.

500

SVCSTG.SWR.5000022

Internal server error: Failed to synchronize meta files.

Rectify the issue based on the error details or contact technical support.

406

SVCSTG.SWR.4060012

Failed to delete the image repository because there are images in it.

Delete images from the repository first.

409

SVCSTG.SWR.4090023

The system is busy.

Try again later.

500

SVCSTG.SWR.5000024

Internal server error: Failed to generate an SHA value.

Rectify the issue based on the error details or contact technical support.

413

SVCSTG.SWR.4130025

The file is too large.

Upload a smaller file.

500

SVCSTG.SWR.5000027

Internal server error: Failed to decompress the package.

Rectify the issue based on the error details or contact technical support.

400

SVCSTG.SWR.4000028

Invalid image format.

Use a valid format.

400

SVCSTG.SWR.4000029

Inconsistent image names.

Use a consistent image name.

500

SVCSTG.SWR.5000030

Internal server error: Failed to locate the file pointer.

Rectify the issue based on the error details or contact technical support.

400

SVCSTG.SWR.4000031

Invalid AK/SK.

Use valid AK/SK.

500

SVCSTG.SWR.5000032

Internal server error: JSON conversion failed.

Rectify the issue based on the error details or contact technical support.

500

SVCSTG.SWR.5000033

Internal server error: Failed to save the application file.

Rectify the issue based on the error details or contact technical support.

500

SVCSTG.SWR.5000034

Internal server error: Failed to delete the application.

Rectify the issue based on the error details or contact technical support.

500

SVCSTG.SWR.5000035

Internal server error: Failed to save the application to the database.

Rectify the issue based on the error details or contact technical support.

500

SVCSTG.SWR.5000036

Internal server error: Failed to update the application database.

Rectify the issue based on the error details or contact technical support.

500

SVCSTG.SWR.5000037

Internal server error: Failed to create the signature.

Rectify the issue based on the error details or contact technical support.

500

SVCSTG.SWR.5000038

Internal server error: Failed to delete the signature.

Rectify the issue based on the error details or contact technical support.

400

SVCSTG.SWR.4000039

Invalid session ID.

Check whether the session ID is valid.

500

SVCSTG.SWR.5000040

Failed to update status.

Rectify the issue based on the error details or contact technical support.

500

SVCSTG.SWR.5000041

Internal server error: Failed to read the session.

Rectify the issue based on the error details or contact technical support.

500

SVCSTG.SWR.5000042

Internal server error: Failed to reclaim the session.

Rectify the issue based on the error details or contact technical support.

404

SVCSTG.SWR.4040043

The session does not exist.

Check whether the session ID exists.

500

SVCSTG.SWR.5000044

Internal server error: Failed to generate the session.

Rectify the issue based on the error details or contact technical support.

400

SVCSTG.SWR.4000045

Internal server error: Failed to bind the session.

Rectify the issue based on the error details or contact technical support.

500

SVCSTG.SWR.5000046

Internal server error: Create failed.

Rectify the issue based on the error details or contact technical support.

400

SVCSTG.SWR.4000047

This version is not supported.

Use a supported version.

404

SVCSTG.SWR.4040048

The image tag does not exist.

Check whether the image tag exists.

500

SVCSTG.SWR.5000049

Internal server error: Failed to delete the image.

Rectify the issue based on the error details or contact technical support.

500

SVCSTG.SWR.5000050

Internal server error: Failed to generate the digest.

Rectify the issue based on the error details or contact technical support.

500

SVCSTG.SWR.5000051

Internal server error: Failed to obtain the SHA list.

Rectify the issue based on the error details or contact technical support.

500

SVCSTG.SWR.5000052

Internal server error: Failed to reduce image references.

Rectify the issue based on the error details or contact technical support.

406

SVCSTG.SWR.4060053

Delete failed.

Delete the software package first.

500

SVCSTG.SWR.5000054

Internal server error: Save failed.

Rectify the issue based on the error details or contact technical support.

400

SVCSTG.SWR.4000055

No search criteria.

Enter search criteria.

400

SVCSTG.SWR.4000056

Invalid page size.

Use the correct size.

500

SVCSTG.SWR.5000057

Internal server error: Failed to obtain the organization.

Rectify the issue based on the error details or contact technical support.

404

SVCSTG.SWR.4040058

The organization does not exist.

Check whether the organization exists.

500

SVCSTG.SWR.5000059

Internal server error: Failed to create the organization.

Rectify the issue based on the error details or contact technical support.

409

SVCSTG.SWR.4090060

The organization already exists.

Check whether the organization already exists.

500

SVCSTG.SWR.5000061

Failed to obtain the IP address of the software instance.

Rectify the issue based on the error details or contact technical support.

500

SVCSTG.SWR.5000062

Failed to obtain the local IP address of the software.

Rectify the issue based on the error details or contact technical support.

500

SVCSTG.SWR.5000063

Failed to obtain the tag list.

Rectify the issue based on the error details or contact technical support.

400

SVCSTG.SWR.4000064

Invalid image: The manifest file contains empty RepoTags.

Modify the request body based on the error details and the SWR API documentation, or contact technical support.

400

SVCSTG.SWR.4000065

Invalid image: The manifest file does not have layer information.

Modify the request body based on the error details and the SWR API documentation, or contact technical support.

400

SVCSTG.SWR.4000066

Invalid image: The manifest file does not have configuration information.

Modify the request body based on the error details and the SWR API documentation, or contact technical support.

400

SVCSTG.SWR.4000067

Invalid image package: The image package does not have a manifest file.

Check whether the image package format is correct.

400

SVCSTG.SWR.4000068

Invalid image: Failed to parse the manifest file.

Modify the request body based on the error details and the SWR API documentation, or contact technical support.

400

SVCSTG.SWR.4000069

Invalid image: The image format is incorrect or not supported.

Modify the request body based on the error details and the SWR API documentation, or contact technical support.

507

SVCSTG.SWR.5070070

Your OBS service is disabled or an error occurs on it.

Check whether your OBS service is available.

500

SVCSTG.SWR.5000071

Internal server error: Failed to obtain the user list.

Rectify the issue based on the error details or contact technical support.

500

SVCSTG.SWR.5000073

Internal server error: Restore failed.

Rectify the issue based on the error details or contact technical support.

500

SVCSTG.SWR.5000075

Internal server error: Failed to update the organization.

Rectify the issue based on the error details or contact technical support.

409

SVCSTG.SWR.4090076

The organization permission already exists.

Check whether the organization permission already exists.

500

SVCSTG.SWR.5000077

Internal server error: Failed to obtain the organization permission.

Rectify the issue based on the error details or contact technical support.

404

SVCSTG.SWR.4040078

The organization permission does not exist.

Check whether the organization permission exists.

500

SVCSTG.SWR.5000079

Internal server error: Failed to update the organization permission.

Rectify the issue based on the error details or contact technical support.

500

SVCSTG.SWR.5000080

Internal server error: Failed to create the organization permission.

Rectify the issue based on the error details or contact technical support.

500

SVCSTG.SWR.5000081

Internal server error: Failed to delete the organization permission.

Rectify the issue based on the error details or contact technical support.

500

SVCSTG.SWR.5000082

Internal server error: Failed to parse the JSON file.

Rectify the issue based on the error details or contact technical support.

404

SVCSTG.SWR.4040083

The requested URL cannot be found.

Check whether the URL is correct.

500

SVCSTG.SWR.5000084

Internal server error: Failed to obtain the service.

Rectify the issue based on the error details or contact technical support.

500

SVCSTG.SWR.5000085

Internal server error: Failed to create the tag.

Rectify the issue based on the error details or contact technical support.

500

SVCSTG.SWR.5000086

Internal server error: Failed to update the tag.

Rectify the issue based on the error details or contact technical support.

500

SVCSTG.SWR.5000087

Internal server error: Failed to obtain the image layer.

Rectify the issue based on the error details or contact technical support.

500

SVCSTG.SWR.5000088

Internal server error: Failed to delete the image layer from UDS.

Rectify the issue based on the error details or contact technical support.

409

SVCSTG.SWR.4090089

The permission already exists.

Check whether the permission already exists.

500

SVCSTG.SWR.5000090

Internal server error: Failed to obtain the permission.

Rectify the issue based on the error details or contact technical support.

404

SVCSTG.SWR.4040091

The permission does not exist.

Check whether the permission exists.

500

SVCSTG.SWR.5000092

Internal server error: Failed to update the permission.

Rectify the issue based on the error details or contact technical support.

500

SVCSTG.SWR.5000093

Internal server error: Failed to create the permission.

Rectify the issue based on the error details or contact technical support.

400

SVCSTG.SWR.4000097

The maximum number of organizations has been exceeded.

Submit a service ticket to increase the quota.

400

SVCSTG.SWR.4000098

The maximum number of images has been exceeded.

Change the number of images and try again.

400

SVCSTG.SWR.4000099

The maximum number of image tags has been exceeded.

Change the number of image tags and try again.

500

SVCSTG.SWR.5000112

Internal server error. Failed to obtain the image.

Rectify the issue based on the error details or contact technical support.

404

SVCSTG.SWR.4040113

The image does not exist.

Check whether the image exists.

500

SVCSTG.SWR.5000114

Internal server error. Failed to obtain the image tag.

Rectify the issue based on the error details or contact technical support.

404

SVCSTG.SWR.4040115

The image tag does not exist.

Check whether the image tag exists.

400

SVCSTG.SWR.4001000

Content-Type must be set to multipart/form-data.

Check whether the value of Content-Type is multipart/form-data.

413

SVCSTG.SWR.4131001

The request exceeds the maximum size allowed.

The request body is too large. Change the body to a smaller size and try again.

500

SVCSTG.SWR.5001002

Internal server error: The external address is disabled.

Rectify the issue based on the error details or contact technical support.

400

SVCSTG.SWR.4001003

Failed to obtain the form file.

Rectify the issue based on the error details or contact technical support.

400

SVCSTG.SWR.4001004

type must be set to app.

Change the value of type to app.

400

SVCSTG.SWR.4001005

Failed to parse the form.

Rectify the issue based on the error details or contact technical support.

400

SVCSTG.SWR.4001006

Invalid meta file format.

Use a valid format.

400

SVCSTG.SWR.4001008

Invalid organization or name.

Use a valid organization or name.

400

SVCSTG.SWR.4001009

is_public must be set to true or false.

Change the value of is_public to true or false.

400

SVCSTG.SWR.4001010

type must be set to app or image.

Change the value of type to app or image.

400

SVCSTG.SWR.4001011

type must be set to app or image, or left blank.

Change the value of type to app or image, or left it blank.

413

SVCSTG.SWR.4131012

The description exceeds the maximum length allowed.

Shorten the description.

400

SVCSTG.SWR.4001013

ak and sk cannot be left blank.

Enter an AK and SK.

400

SVCSTG.SWR.4001014

Mandatory parameters must be configured.

Configure all mandatory parameters.

400

SVCSTG.SWR.4001015

The form file cannot be found.

Check whether the form file is missing.

400

SVCSTG.SWR.4001016

is_public and manifests must be configured.

Check whether is_public and manifests are configured.

400

SVCSTG.SWR.4001018

Invalid request body type.

Use a valid body type.

400

SVCSTG.SWR.4001019

Failed to parse the form file.

Rectify the issue based on the error details or contact technical support.

500

SVCSTG.SWR.5001020

Internal server error: Failed to read the form file.

Rectify the issue based on the error details or contact technical support.

400

SVCSTG.SWR.4001021

The version number cannot be left blank.

Check whether the version number is left blank.

400

SVCSTG.SWR.4001022

Invalid file type.

Use a valid file type.

400

SVCSTG.SWR.4001023

The file type is not supported.

Use a supported file type.

400

SVCSTG.SWR.4001024

Failed to query parameters.

Rectify the issue based on the error details or contact technical support.

400

SVCSTG.SWR.4001025

Invalid parameters.

Modify the query parameters based on the API documentation.

500

SVCSTG.SWR.5001026

Failed to obtain the manifest file.

Rectify the issue based on the error details or contact technical support.

400

SVCSTG.SWR.4001027

Status must be set to done or error.

Change the value of status to done or error.

400

SVCSTG.SWR.4001028

Invalid organization name.

Use a valid organization name.

400

SVCSTG.SWR.4001029

Invalid image name.

Use a valid image name.

400

SVCSTG.SWR.4001030

Invalid package.

Change the value of package.

403

SVCSTG.SWR.4031032

The number of requests exceeds the maximum number allowed.

Rectify the issue based on the error details or contact technical support.

403

SVCSTG.SWR.4031033

Unavailable request.

Rectify the issue based on the error details or contact technical support.

400

SVCSTG.SWR.4001035

Invalid filtering criteria.

Rectify the issue based on the error details or contact technical support.

400

SVCSTG.SWR.4001036

Parameters are lost.

Rectify the issue based on the error details or contact technical support.

400

SVCSTG.SWR.4001037

The registration center type is not supported.

Rectify the issue based on the error details or contact technical support.

500

SVCSTG.SWR.5001038

The registration center is unavailable.

Rectify the issue based on the error details or contact technical support.

500

SVCSTG.SWR.5001039

Search failed.

Rectify the issue based on the error details or contact technical support.

400

SVCSTG.SWR.4001041

Invalid domain.

Change the value of domain.

403

SVCSTG.SWR.4031042

There are too many requests.

Rectify the issue based on the error details or contact technical support.

403

SVCSTG.SWR.4031043

Invalid JWT token request.

Rectify the issue based on the error details or contact technical support.

401

SVCSTG.SWR.4011044

The image has been created by another user. You do not have permission to upload it.

Check whether you have permission to upload the image.

400

SVCSTG.SWR.4001045

The SWRServer parameter is missing.

Check whether the SWRServer parameter is missing.

500

SVCSTG.SWR.5001046

Internal server error: Failed to check the organization.

Rectify the issue based on the error details or contact technical support.

500

SVCSTG.SWR.5001047

Internal server error: Failed to save the organization.

Rectify the issue based on the error details or contact technical support.

400

SVCSTG.SWR.4001048

Failed to obtain the token.

Rectify the issue based on the error details or contact technical support.

500

SVCSTG.SWR.5001049

Internal server error: Failed to delete the organization.

Rectify the issue based on the error details or contact technical support.

500

SVCSTG.SWR.5001050

Internal server error: Failed to obtain the image layer.

Rectify the issue based on the error details or contact technical support.

404

SVCSTG.SWR.4041051

The image layer does not exist.

Check whether the image layer exists.

500

SVCSTG.SWR.5001052

Internal server error: Invalid image layer.

Rectify the issue based on the error details or contact technical support.

500

SVCSTG.SWR.5001053

Internal server error: Invalid upload of an image layer.

Rectify the issue based on the error details or contact technical support.

500

SVCSTG.SWR.5001054

Internal server error: Failed to create the image layer path.

Rectify the issue based on the error details or contact technical support.

500

SVCSTG.SWR.5001055

Internal server error: Failed to save the image layer.

Rectify the issue based on the error details or contact technical support.

404

SVCSTG.SWR.4041056

The image tag does not exist.

Check whether the image tag exists.

500

SVCSTG.SWR.5001056

Internal server error: Failed to obtain the tag list.

Rectify the issue based on the error details or contact technical support.

404

SVCSTG.SWR.4041057

The tag list does not exist.

Check whether the tag list exists.

500

SVCSTG.SWR.5001058

Internal server error: Failed to save the image.

Rectify the issue based on the error details or contact technical support.

500

SVCSTG.SWR.5001059

Internal server error: Failed to obtain the image.

Rectify the issue based on the error details or contact technical support.

404

SVCSTG.SWR.4041060

The manifest file does not exist.

Check whether the manifest file exists.

404

SVCSTG.SWR.4041061

The organization does not exist.

Check whether the organization exists.

500

SVCSTG.SWR.5001062

Internal server error: Failed to update the organization.

Rectify the issue based on the error details or contact technical support.

500

SVCSTG.SWR.5001063

Internal server error: Failed to delete the image layer.

Rectify the issue based on the error details or contact technical support.

401

SVCSTG.SWR.4011064

Cross-account error. For example, you do not have permission to access or operate resources of other accounts.

Check whether you have the required permission.

400

SVCSTG.SWR.4001065

Invalid organization permissions.

Change organization permissions.

400

SVCSTG.SWR.4001066

Invalid permissions.

Change permissions.

400

SVCSTG.SWR.4001067

Invalid username.

Use a valid username.

500

SVCSTG.SWR.5001076

Failed to obtain the service token.

Rectify the issue based on the error details or contact technical support.

401

SVCSTG.S2I.4019000

Authentication error: No user token or user AK/SK information found.

Check whether you have the required permission.

403

SVCSTG.SWR.4039001

You cannot apply for or operate the resources that do not belong to you.

Check whether you have the required permission.

403

SVCSTG.SWR.4039002

You do not have the permission to perform this operation.

Check whether you have the required permission.

400

SVCSTG.SWR.4009010

Invalid organization.

Use a valid organization.

400

SVCSTG.SWR.4009011

Invalid image name.

Use a valid image name.

400

SVCSTG.SWR.4009012

Invalid code source type.

Use a valid code source type.

400

SVCSTG.SWR.4009013

Invalid ID.

Use a valid ID.

400

SVCSTG.SWR.4009014

Invalid filtering criteria.

Use valid filter criteria.

400

SVCSTG.SWR.4009015

Failed to parse the build task.

Rectify the issue based on the error details or contact technical support.

400

SVCSTG.SWR.4009016

Invalid file path.

Use a valid file path.

400

SVCSTG.SWR.4009017

Invalid source code owner.

Use a valid source code owner.

400

SVCSTG.SWR.4009018

Invalid source code repository.

Use a valid code source repository.

400

SVCSTG.SWR.4009019

Invalid source code repository ID.

Use a valid code source repository ID.

400

SVCSTG.SWR.4009020

Invalid source code branch.

Use a valid code source branch.

400

SVCSTG.SWR.4009021

Invalid image tag.

Use a valid image tag.

400

SVCSTG.SWR.4009022

Invalid source code username.

Use a valid code source user name.

400

SVCSTG.SWR.4009023

Invalid commit ID.

Use a valid commit ID.

400

SVCSTG.SWR.4006030

Failed to execute the build task.

Rectify the issue based on the error details or contact technical support.

400

SVCSTG.SWR.4006031

The build record already exists.

Check whether the build record already exists.

404

SVCSTG.SWR.4046032

The build record does not exist.

Check whether the build record exists.

500

SVCSTG.SWR.5006033

Failed to obtain the build record from the database.

Rectify the issue based on the error details or contact technical support.

403

SVCSTG.SWR.4037017

You do not have permission to modify or manage any organization.

Create an organization or obtain permission to modify and manage other organizations.

403

SVCSTG.SWR.4037018

You do not have permission to modify or manage any images.

Create an image or obtain permission to modify and manage other images.

500

SVCSTG.SWR.5007019

Failed to create the image. The maximum number of images have been reached.

Rectify the issue based on the error details or contact technical support.

403

SVCSTG.SWR.4037020

You do not have permission to operate resources in the repository.

Elevate your permissions in the organization.

400

SVCSTG.SWR.4001091

Invalid parameter: permission.

Change the value of permission.