Updated on 2024-04-11 GMT+08:00

Error Codes

If an error occurs in API calling, no result is 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.

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 error code, errorMessage indicates error description, and detail provides error details.

Error Code Description

Status Code

Error Code

Description

401

SVCSTG.SWR.4010000

Authentication failed. Obtain a new token and try again.

500

SVCSTG.SWR.5000001

Internal server error: Failed to obtain the application description.

500

SVCSTG.SWR.5000002

Internal server error: Failed to obtain the image information.

500

SVCSTG.SWR.5000003

Internal server error: Failed to obtain the image list.

404

SVCSTG.SWR.4040004

The software package does not exist.

500

SVCSTG.SWR.5000005

Internal server error: Deletion fails.

409

SVCSTG.SWR.4090006

The image already exists.

500

SVCSTG.SWR.5000007

Internal server error: Operation fails.

500

SVCSTG.SWR.5000008

Internal server error: Failed to obtain the list.

404

SVCSTG.SWR.4040009

The image list cannot be found.

404

SVCSTG.SWR.4040010

The image does not exist.

500

SVCSTG.SWR.5000011

Internal server error: Update fails.

406

SVCSTG.SWR.4060012

Failed to delete the image repository because it contains images.

400

SVCSTG.SWR.4000013

Invalid digest.

400

SVCSTG.SWR.4000014

Invalid API parameter. Modify the request body based on the returned message and the SWR API documentation, or contact technical support.

400

SVCSTG.SWR.4000015

Invalid package name.

400

SVCSTG.SWR.4000016

Invalid version number.

500

SVCSTG.SWR.5000017

Internal server error: The application signature function is disabled.

500

SVCSTG.SWR.5000018

Internal server error: Failed to read public keys.

500

SVCSTG.SWR.5000019

Internal server error: Failed to find local files.

500

SVCSTG.SWR.5000020

Internal server error: Failed to obtain session locks.

500

SVCSTG.SWR.5000021

Internal server error: Failed to synchronize files.

500

SVCSTG.SWR.5000022

Internal server error: Failed to synchronize meta files.

409

SVCSTG.SWR.4090023

The system is busy.

500

SVCSTG.SWR.5000024

Internal server error: Failed to generate the SHA value.

413

SVCSTG.SWR.4130025

The file exceeds the maximum size allowed.

500

SVCSTG.SWR.5000027

Internal server error: Failed to decompress the package.

400

SVCSTG.SWR.4000028

Incorrect image format.

400

SVCSTG.SWR.4000029

Incorrect image format: The image name is inconsistent.

500

SVCSTG.SWR.5000030

Internal server error: Failed to locate the file pointer.

400

SVCSTG.SWR.4000031

Invalid AK/SK.

500

SVCSTG.SWR.5000032

Internal server error: JSON conversion fails.

500

SVCSTG.SWR.5000033

Internal server error: Failed to save the application file.

500

SVCSTG.SWR.5000034

Internal server error: Failed to delete the application.

500

SVCSTG.SWR.5000035

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

500

SVCSTG.SWR.5000036

Internal server error: Failed to update the application database.

500

SVCSTG.SWR.5000037

Internal server error: Failed to create the signature.

500

SVCSTG.SWR.5000038

Internal server error: Failed to delete the signature.

400

SVCSTG.SWR.4000039

Invalid session ID.

500

SVCSTG.SWR.5000040

Failed to update status.

500

SVCSTG.SWR.5000041

Internal server error: Failed to read the session.

500

SVCSTG.SWR.5000042

Internal server error: Failed to reclaim the session.

404

SVCSTG.SWR.4040043

The session does not exist.

500

SVCSTG.SWR.5000044

Internal server error: Failed to generate the session.

400

SVCSTG.SWR.4000045

Internal server error: Failed to bind the session.

500

SVCSTG.SWR.5000046

Internal server error: Creation fails.

400

SVCSTG.SWR.4000047

This version is not supported.

404

SVCSTG.SWR.4040048

The image tag does not exist.

500

SVCSTG.SWR.5000049

Internal server error: Failed to delete the image.

500

SVCSTG.SWR.5000050

Internal server error: Failed to generate the digest.

500

SVCSTG.SWR.5000051

Internal server error: Failed to obtain the SHA list.

500

SVCSTG.SWR.5000052

Internal server error: Failed to reduce image references.

406

SVCSTG.SWR.4060053

Deletion fails. Please first delete the software package.

500

SVCSTG.SWR.5000054

Internal server error: Saving fails.

400

SVCSTG.SWR.4000055

No search content.

400

SVCSTG.SWR.4000056

Invalid page size.

500

SVCSTG.SWR.5000057

Internal server error: Failed to obtain the organization.

404

SVCSTG.SWR.4040058

The organization does not exist.

500

SVCSTG.SWR.5000059

Internal server error: Failed to create the organization.

409

SVCSTG.SWR.4090060

The organization already exists.

500

SVCSTG.SWR.5000061

Failed to obtain the IP address of the software instance.

500

SVCSTG.SWR.5000062

Failed to obtain the local IP address of the software.

500

SVCSTG.SWR.5000063

Failed to obtain the tag list.

400

SVCSTG.SWR.4000064

Invalid image: The manifest file contains empty RepoTags.

400

SVCSTG.SWR.4000065

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

400

SVCSTG.SWR.4000066

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

400

SVCSTG.SWR.4000067

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

400

SVCSTG.SWR.4000068

Invalid image: Failed to parse the manifest file.

400

SVCSTG.SWR.4000069

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

507

SVCSTG.SWR.5070070

Your OBS service is disabled or incorrect. Please first check your OBS service.

500

SVCSTG.SWR.5000071

Internal server error: Failed to obtain the user list.

500

SVCSTG.SWR.5000073

Internal server error: Restoration fails.

500

SVCSTG.SWR.5000075

Internal server error: Failed to update the organization.

409

SVCSTG.SWR.4090076

The organization permission already exists.

500

SVCSTG.SWR.5000077

Internal server error: Failed to obtain the organization permission.

404

SVCSTG.SWR.4040078

The organization permission does not exist.

500

SVCSTG.SWR.5000079

Internal server error: Failed to update the organization permission.

500

SVCSTG.SWR.5000080

Internal server error: Failed to create the organization permission.

500

SVCSTG.SWR.5000081

Internal server error: Failed to delete the organization permission.

500

SVCSTG.SWR.5000082

Internal server error: Failed to parse the JSON file.

404

SVCSTG.SWR.4040083

The requested URL cannot be found.

500

SVCSTG.SWR.5000084

Internal server error: Failed to obtain the service.

500

SVCSTG.SWR.5000085

Internal server error: Failed to create the tag.

500

SVCSTG.SWR.5000086

Internal server error: Failed to update the tag.

500

SVCSTG.SWR.5000087

Internal server error: Failed to obtain the image layer.

500

SVCSTG.SWR.5000088

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

409

SVCSTG.SWR.4090089

The permission already exists.

500

SVCSTG.SWR.5000090

Internal server error: Failed to obtain the permission.

404

SVCSTG.SWR.4040091

The permission does not exist.

500

SVCSTG.SWR.5000092

Internal server error: Failed to update the permission.

500

SVCSTG.SWR.5000093

Internal server error: Failed to create the permission.

400

SVCSTG.SWR.4000097

The maximum number of organizations has been exceeded.

400

SVCSTG.SWR.4000098

The maximum number of images has been exceeded.

400

SVCSTG.SWR.4000099

The maximum number of image tags has been exceeded.

500

SVCSTG.SWR.5000112

Internal server error. Failed to obtain the image.

404

SVCSTG.SWR.4040113

The image does not exist.

500

SVCSTG.SWR.5000114

Internal server error. Failed to obtain the image tag.

404

SVCSTG.SWR.4040115

The image tag does not exist.

400

SVCSTG.SWR.4001000

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

413

SVCSTG.SWR.4131001

The request exceeds the maximum size allowed.

500

SVCSTG.SWR.5001002

Internal server error: The external address is disabled.

400

SVCSTG.SWR.4001003

Failed to obtain the form file.

400

SVCSTG.SWR.4001004

Type must be set to app.

400

SVCSTG.SWR.4001005

Failed to parse the form.

400

SVCSTG.SWR.4001006

Invalid meta file format.

400

SVCSTG.SWR.4001008

Invalid organization or name.

400

SVCSTG.SWR.4001009

is_public must be set to true or false.

400

SVCSTG.SWR.4001010

Type must be set to app or image.

400

SVCSTG.SWR.4001011

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

413

SVCSTG.SWR.4131012

The description exceeds the maximum length allowed.

400

SVCSTG.SWR.4001013

ak or sk cannot be left blank.

400

SVCSTG.SWR.4001014

Mandatory parameters must be set.

400

SVCSTG.SWR.4001015

The form file cannot be found.

400

SVCSTG.SWR.4001016

At least is_public and manifests must be set.

400

SVCSTG.SWR.4001018

Incorrect request body type.

400

SVCSTG.SWR.4001019

Failed to parse the form file.

500

SVCSTG.SWR.5001020

Internal server error: Failed to read the form file.

400

SVCSTG.SWR.4001021

The version number cannot be left blank.

400

SVCSTG.SWR.4001022

Incorrect file type.

400

SVCSTG.SWR.4001023

Unsupported file type.

400

SVCSTG.SWR.4001024

Failed to query parameters.

400

SVCSTG.SWR.4001025

Invalid parameter.

500

SVCSTG.SWR.5001026

Failed to obtain the manifest file.

400

SVCSTG.SWR.4001027

Status must be set to done or error.

400

SVCSTG.SWR.4001028

Invalid organization name.

400

SVCSTG.SWR.4001029

Invalid image name.

400

SVCSTG.SWR.4001030

Invalid package.

403

SVCSTG.SWR.4031032

The number of requests exceeds the maximum number allowed.

403

SVCSTG.SWR.4031033

Unavailable request.

400

SVCSTG.SWR.4001035

Invalid filtering criteria.

400

SVCSTG.SWR.4001036

Parameters are lost.

400

SVCSTG.SWR.4001037

The registration center type is not supported.

500

SVCSTG.SWR.5001038

The registration center is unavailable.

500

SVCSTG.SWR.5001039

Search fails.

400

SVCSTG.SWR.4001041

Invalid domain.

403

SVCSTG.SWR.4031042

There are too many requests.

403

SVCSTG.SWR.4031043

Invalid JWT token request.

401

SVCSTG.SWR.4011044

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

400

SVCSTG.SWR.4001045

The SWRServer parameter is missing.

500

SVCSTG.SWR.5001046

Internal server error: Failed to check the organization.

500

SVCSTG.SWR.5001047

Internal server error: Failed to save the organization.

400

SVCSTG.SWR.4001048

Failed to obtain the token.

500

SVCSTG.SWR.5001049

Internal server error: Failed to delete the organization.

500

SVCSTG.SWR.5001050

Internal server error: Failed to obtain the image layer.

404

SVCSTG.SWR.4041051

The image layer does not exist.

500

SVCSTG.SWR.5001052

Internal server error: Invalid image layer.

500

SVCSTG.SWR.5001053

Internal server error: Invalid upload of an image layer.

500

SVCSTG.SWR.5001054

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

500

SVCSTG.SWR.5001055

Internal server error: Failed to save the image layer.

404

SVCSTG.SWR.4041056

The image tag does not exist.

500

SVCSTG.SWR.5001056

Internal server error: Failed to obtain the tag list.

404

SVCSTG.SWR.4041057

The tag list does not exist.

500

SVCSTG.SWR.5001058

Internal server error: Failed to save the image.

500

SVCSTG.SWR.5001059

Internal server error: Failed to obtain the image.

404

SVCSTG.SWR.4041060

The manifest file does not exist.

404

SVCSTG.SWR.4041061

The organization does not exist.

500

SVCSTG.SWR.5001062

Internal server error: Failed to update the organization.

500

SVCSTG.SWR.5001063

Internal server error: Failed to delete the image layer.

401

SVCSTG.SWR.4011064

Insufficient permissions.

400

SVCSTG.SWR.4001065

Invalid organization permissions.

400

SVCSTG.SWR.4001066

Invalid permissions.

400

SVCSTG.SWR.4001067

Invalid username.

500

SVCSTG.SWR.5001076

Failed to obtain the service token.

401

SVCSTG.S2I.4019000

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

403

SVCSTG.SWR.4039001

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

403

SVCSTG.SWR.4039002

You do not have the permission to perform this operation.

400

SVCSTG.SWR.4009010

Invalid organization.

400

SVCSTG.SWR.4009011

Invalid image name.

400

SVCSTG.SWR.4009012

Invalid code source type.

400

SVCSTG.SWR.4009013

Invalid ID.

400

SVCSTG.SWR.4009014

Invalid filtering criteria.

400

SVCSTG.SWR.4009015

Failed to parse the build task.

400

SVCSTG.SWR.4009016

Invalid file path.

400

SVCSTG.SWR.4009017

Invalid source code owner.

400

SVCSTG.SWR.4009018

Invalid source code repository.

400

SVCSTG.SWR.4009019

Invalid source code repository ID.

400

SVCSTG.SWR.4009020

Invalid source code branch.

400

SVCSTG.SWR.4009021

Invalid image label.

400

SVCSTG.SWR.4009022

Invalid source code username.

400

SVCSTG.SWR.4009023

Invalid commit ID.

400

SVCSTG.SWR.4006030

Failed to execute the build task.

400

SVCSTG.SWR.4006031

The build record already exists.

404

SVCSTG.SWR.4046032

The build record does not exist.

500

SVCSTG.SWR.5006033

Failed to obtain the build record from the database.

403

SVCSTG.SWR.4037017

You do not have the permission to edit or manage any organization. Please first create an organization or obtain the edit/management permission of the organization.

403

SVCSTG.SWR.4037018

You do not have the permission to edit or manage any image in the image repository. Please first create an image or obtain an editable/manageable image.

500

SVCSTG.SWR.5007019

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

403

SVCSTG.SWR.4037020

You do not have the permission to operate the image repository resource. Please improve your organization permissions.