We use essential cookies for the website to function, as well as analytics cookies for analyzing and creating statistics of the website performance. To agree to the use of analytics cookies, click "Accept All". You can manage your preferences at any time by clicking "Cookie Settings" on the footer. More Information.

Only Essential Cookies
Accept All

Documents from this version have been archived, and will not continue to be maintained. Please use the latest version.

HMS Core ReferencesDrive KitStatus Codes

HUAWEI Drive Kit Status Codes

1 HTTP Status Codes

Drive error codes are defined based on HTTP status codes, where the reason and description fields indicate the specific cause of an error.

Expand

HTTP STATUS Code

Service Result Code

Description

Suggestion

200

-

Success.

-

204

-

Success.

-

206-Success.-
201-Operation succeeded, but some file attributes failed to be set.Modify the corresponding parameters based on the returned information.
302-RedirectionVisit the new address that is returne
308-File not completely uploaded during a resumable upload session.Resume file upload based on the returned information.
4004001Input parameter is missing.Verify that the request parameters are correct based on the returned information. If the failure persists, contact Huawei technical support.
4002Parameter verification failed.Verify that the request parameters are correct based on the returned information. If the failure persists, contact Huawei technical support.
4003Invalid parameter.Verify that the request parameters are correct based on the returned information. If the failure persists, contact Huawei technical support.
4004Input parameter expired.Obtain the corresponding parameters again and renew the request.
4005Routing failed.Verify that the request URL is correct.
4014011

User authentication failed.

Conduct user authenticate again.

4034031Security policy being updated.Wait until security policy update is complete.
4032Service not supported in the current country/region.Verify that the HUAWEI ID comes from a country/region supported by HUAWEI Drive Kit.
4033HUAWEI Drive user agreement not signed.Direct the user to the page(https://cloud.huawei.com/) for signing the HUAWEI Drive user agreement.
4034Restricted function.Contact Huawei technical support.
4035Scope verification failed.Verify that the current app has been created in AppGallery and the required services have been applied for it. If the failure persists, contact Huawei technical support.
4036No permission.
Verify that the permissions for operating the resource have been granted.
4037Operation failed due to an error.Try again later.
4038External server error.Contact Huawei technical support.
4039Insufficient storage space.Verify that the user's storage space is sufficient. If the failure persists, contact Huawei technical support.
4931Repeated file download.Check the app logs for the reason why the file is repeatedly download.
4932Duplicate file or folder name.Check whether a file or folder with the same name is already in the current folder. If it is, prompt the user to enter another name. If it is not, contact Huawei technical support.
4044041File not found.Verify that the file exists.
4042Data exception occurred and data becomes unavailable.Contact Huawei technical support.
4043Subscription channel not found.Verify that the channel exists.
4104101Cursor expired.Obtain a new cursor.

429

4291

Too many user requests.

Try again later. If the failure persists, contact Huawei technical support.

4292Too many app requests.Try again later. If the failure persists, contact Huawei technical support.
5005001Insufficient server resources.Try again later. If the failure persists, contact Huawei technical support.
5002External service is unavailable.Try again later. If the failure persists, contact Huawei technical support.
5003External service is busy.Try again later. If the failure persists, contact Huawei technical support.
5004Database operation failed.Try again later. If the failure persists, contact Huawei technical support.
5005Resource locked and cannot be operated temporarily. Try again later. If the failure persists, contact Huawei technical support.
5006

Temporary server error.

Try again later. If the failure persists, contact Huawei technical support.

5035030Abnormal service status.Try again later. If the failure persists, contact Huawei technical support.

2 Error Code Example

Collapse
Word wrap
Dark theme
Copy code
  1. {
  2.    "error": {
  3.        "code": 400,
  4.        "description": "Parameter error",
  5.        "errorDetail": [
  6.            {
  7.                "reason": "PARAM_INVALID",
  8.                "domain": "global",
  9.                "errorCode": "21004002",
  10.                "description": "Parameter error"
  11.            }
  12.        ]
  13.    }
  14. }
This page may contain third-party content. For details, click here.
Search in References
Enter a keyword.