Error Codes

Updated: 2021-1-19

When calling an API and the server returns an error, the HTTP response is as follows:

HTTP/1.1 400 Bad Request
Content-Type: application/json

{"error_code":40003,"error_msg":"Invalid request parameters"}
  • HTTP Status Code: >= 400
  • HTTP Body: JSON format containing specific details
  • JSON Fields:
    • error_code: Error code
    • error_msg: Error message

Error Codes

HTTP Status Code: 400 (Bad Request)

Error Code Description
400 Invalid request data
40001 Incorrect request address
400012 Signature verification failed
40002 Incorrect request method
40003 Invalid request parameters
4000304 Validation failed
4000305 Validation timeout, please log in again
400031 Email cannot be empty
400032 Invalid email format
400034 Repository name cannot be empty
400036 Phone number cannot be empty
4000361 Phone number does not exist
4000310 Content cannot be empty
4000311 Total length of all tags cannot exceed characters
4000317 Department name cannot be empty
4000318 Name length cannot exceed 20 characters
4000319 Name cannot be empty
4000320 Name length cannot exceed 10 characters
4000321 Filename cannot contain the following characters: / \ : * ? " < > |
4000322 Filename cannot be . or ..
4000323 Name cannot exceed characters
40003231 Name cannot be less than 2 characters
4000325 Incorrect password
4000327 Passwords do not match
4000329 Invalid verification code
40003291 Verification code expired
4000330 Please enter the verification code
4000331 Filename is too long
4000332 File path is too long
4000344 Current login IP is not within the allowed range
4000345 Invalid IP
400041 No file detected or upload timed out
400045 Unable to retrieve file size
40013 Cannot move folder into its subfolder
400131 File has already been restored
400136 Cannot move files or folders across repositories
400137 Cannot copy files or folders across storage points
400151 Email is already in use, please use a different email
400152 Account is already in use, please use a different account
40017 File format not supported for online preview
400172 Unsupported file format
40018 Please select a file to share
40020 Operation failed, please try again
40041 Repository has other members, cannot delete
40051 Storage point does not exist
400510 Requested storage point does not match the repository's storage point
40052 Storage point does not allow repository creation
40053 Repository size exceeds the maximum allocation for the storage point
40054 Repository size exceeds the enterprise's remaining allocable space
40055 Storage point is in use and cannot be deleted
400650 Name already exists, please choose another
400653 Repository folder with the same name already exists, please choose another
400803 Role does not exist
40093 Member with the same email already exists
40097 The repository has departments or members, please clear them before deleting
400102 Cannot move parent department into a sub-department

HTTP Status Code: 401 (Unauthorized)

Error Code Description
401 Not authenticated
40101 Invalid token
401010 Invalid refresh_token
40102 Token has expired
40103 Client does not exist
40104 Signature error
40106 Login timed out
401144 Token verification failed

HTTP Status Code: 403 (Forbidden)

Error Code Description
403 No permission to access the resource
40301 Method not supported
40302 Account has been banned from logging in
403021 Email has been banned, please use another email
403022 Web version is disabled
40303 Incorrect account or password
40304 Request expired
403040 Request expired, please refresh and try again
40305 Device is restricted
403051 Device does not exist
403052 Account is restricted from logging in with new devices
403053 Current device has been disabled
403054 Current device has been disabled by admin
403055 Admin has set a restriction on new device logins
40306 Function not enabled
40308 Account has been disabled
40309 Your IP address is outside the allowed range
40310 No permission to perform this operation
40311 No permission to access the repository
40313 You do not have this repository or file
40314 Your request is in progress
403151 Files under the folder are being edited by others
403154 The file is exclusively modified by someone
40317 User exists only in the current department
40320 User space is being operated on, please try later
403201 The folder is being operated on, please try later
40321 Repository [] has insufficient space, please clean the recycle bin or delete unnecessary files to continue using
403212 Repository ( ) has insufficient space to copy, please clean the recycle bin or delete unnecessary files
403213 Repository ( ) has insufficient space to move, please clean the recycle bin or delete unnecessary files
40322 No permission to operate on this file
40323 No permission to receive the folder
40324 File is identical, no need to restore
40325 No permission to permanently delete the file
40329 Current file is exclusively modified, unable to restore the historical version
4033017 No permission to save file to this folder
4033018 No permission to access this link
4033019 No permission to close this link
4033021 Only members of the enterprise “ ” can access this link
4033023 Maximum set time for external link is days
4033025 Expiration time cannot be earlier than or equal to the effective time
4033026 External link requires a password
4033027 External link access limit reached
4033028 External link function has been disabled by admin
4033029 External link function for personal repositories has been disabled by admin
4033030 External link function for shared repositories has been disabled by admin
40331 Cannot transfer files in a folder to another user in bulk
403311 The file is being edited
403312 The file is being collaboratively edited
40332 Number of enterprise members exceeds the limit
4033221 Number of repositories created exceeds the limit
403211 The link has expired, please reacquire
4032110 The folder has expired
403214 Cannot remove members from a department shared repository
403216 Unable to modify avatar
403217 File operation period has expired
403220 Log export not allowed for more than months
403222 Not allowed to invite non-enterprise members
403223 Not allowed to create personal repository
403334 Not allowed to share the repository with everyone
403335 Not allowed to share the repository with level departments

HTTP Status Code: 404 (Not Found)

Error Code Description
404 Requested resource does not exist
40401 Repository does not exist or has been deleted
40402 File (folder) does not exist or has been deleted
404021 “ ” does not exist or has been deleted
40403 File version does not exist, unable to restore
404023 Unable to retrieve file download address
40404 Repository does not exist
404041 Could not find the repository
40405 Unable to retrieve user information
40406 User does not exist
404061 User [] does not exist
40407 Department does not exist
40409 Link has expired or has been closed
404091 Link does not exist or has expired
404092 Link has expired, please reacquire
404093 External link will be effective from
404094 External link has expired
40410 Enterprise does not exist
404100 User is not a member of the enterprise
404102 Enterprise account has expired
40420 Account does not exist
404203 Account has been removed from the enterprise
40432 Unable to retrieve server information
404404 The method has been deprecated
404405 Send failed, please try again

HTTP Status Code: 405 (Method Not Allowed)

Error Code Description
405 Method Not Allowed
40501 Method not authorized
40502 Method not authorized, requires authorization

HTTP Status Code: 500 (Internal Server Error)

Error Code Description
500 Internal server error
50001 Database error
500011 Unable to generate file version number
502 API is closed or under upgrade
503 Server resource unavailable
50301 Unable to obtain upload server
50302 Server temporarily unavailable
50304 File operation exceeds limit, please try again later
50305 Server does not support HTTPS protocol