Skip to main content

Error Codes

This document lists all the custom error codes defined in the project, categorized by module.

Account Errors

ACT-ERR-0

  • Error Code: ACT-ERR-0
  • Error Name: insufficientBalance
  • Description: The user's account balance is insufficient to complete the requested transaction or operation.

ACT-ERR-1

  • Error Code: ACT-ERR-1
  • Error Name: subscriptionExist
  • Description: The user is attempting to subscribe to a service for which they already have an active subscription.

ACT-ERR-2

  • Error Code: ACT-ERR-2
  • Error Name: invalidUnitType
  • Description: The unit type specified in the request (e.g., for billing) is not recognized or supported.

ACT-ERR-3

  • Error Code: ACT-ERR-3
  • Error Name: wrongTimeRange
  • Description: The specified time range is invalid, for example, the start time is after the end time.

Auth Errors

AUTH-ERR-0

  • Error Code: AUTH-ERR-0
  • Error Name: unauthorized
  • Description: The user is not logged in. Please log in to access this resource.

AUTH-ERR-1

  • Error Code: AUTH-ERR-1
  • Error Name: userNotFound
  • Description: The user account specified could not be found.

AUTH-ERR-2

  • Error Code: AUTH-ERR-2
  • Error Name: forbidden
  • Description: The current user does not have sufficient permissions to perform this action.

AUTH-ERR-3

  • Error Code: AUTH-ERR-3
  • Error Name: noEmail
  • Description: The user's account does not have an associated email address, which is required for this operation.

AUTH-ERR-4

  • Error Code: AUTH-ERR-4
  • Error Name: invalidJWT
  • Description: The authentication token (JWT) is malformed, invalid, or has expired. Please log in again.

AUTH-ERR-5

  • Error Code: AUTH-ERR-5
  • Error Name: invalidAuthHeader
  • Description: The Authorization header is missing or incorrectly formatted. It should typically be in the format 'Bearer {token}'.

AUTH-ERR-6

  • Error Code: AUTH-ERR-6
  • Error Name: notAdmin
  • Description: This operation requires administrator privileges, but the current user is not an administrator.

AUTH-ERR-7

  • Error Code: AUTH-ERR-7
  • Error Name: userNotMatch
  • Description: You can only perform this action on your own account.

AUTH-ERR-8

  • Error Code: AUTH-ERR-8
  • Error Name: needUUID
  • Description: The request must include the user's UUID in the header or body to identify the target account.

AUTH-ERR-9

  • Error Code: AUTH-ERR-9
  • Error Name: needAPIKey
  • Description: The request must include an API Key in the header or body for authentication.

AUTH-ERR-10

  • Error Code: AUTH-ERR-10
  • Error Name: userPhoneNotVerified
  • Description: Your phone number has not been verified yet. Please verify your phone number before making any requests.

Dataset Errors

DAT-ERR-0

  • Error Code: DAT-ERR-0
  • Error Name: dataviewerCardNotFound
  • Description: The requested dataviewer card could not be located within the system or the specified dataset.

DAT-ERR-1

  • Error Code: DAT-ERR-1
  • Error Name: datasetBadFormat
  • Description: The uploaded or specified dataset is not in a valid or expected format. Please check the file structure and data types.

DAT-ERR-2

  • Error Code: DAT-ERR-2
  • Error Name: noValidParquetFile
  • Description: The dataset does not contain any valid Parquet files, which are required for this operation.

Git Errors

GIT-ERR-0

  • Error Code: GIT-ERR-0
  • Error Name: gitCloneFailed
  • Description: The attempt to clone a remote Git repository to the local system failed. This could be due to network issues, incorrect repository URL, or insufficient permissions.

GIT-ERR-1

  • Error Code: GIT-ERR-1
  • Error Name: gitPullFailed
  • Description: Failed to fetch from and integrate with another repository or a local branch. This can be caused by merge conflicts, network problems, or authentication issues.

GIT-ERR-2

  • Error Code: GIT-ERR-2
  • Error Name: gitPushFailed
  • Description: Failed to update remote refs along with associated objects. This might happen if the remote branch has new commits, or due to insufficient push permissions.

GIT-ERR-3

  • Error Code: GIT-ERR-3
  • Error Name: gitCommitFailed
  • Description: The attempt to record changes to the repository failed. This could be due to an empty staging area, a pre-commit hook failure, or incorrect user configuration.

GIT-ERR-4

  • Error Code: GIT-ERR-4
  • Error Name: gitFindCommitFailed
  • Description: An error occurred while searching for a specific commit. The commit hash may be malformed or the search operation itself failed.

GIT-ERR-5

  • Error Code: GIT-ERR-5
  • Error Name: gitCountCommitsFailed
  • Description: An error occurred while trying to count the number of commits in a branch or repository.

GIT-ERR-6

  • Error Code: GIT-ERR-6
  • Error Name: gitCommitNotFound
  • Description: The commit referenced by the provided hash or reference could not be found in the repository's history.

GIT-ERR-7

  • Error Code: GIT-ERR-7
  • Error Name: gitDiffFailed
  • Description: An error occurred while generating a diff between two commits, branches, or files.

GIT-ERR-8

  • Error Code: GIT-ERR-8
  • Error Name: gitAuthFailed
  • Description: Authentication with the remote Git server failed. Please check your credentials (e.g., token, SSH key) and permissions.

GIT-ERR-9

  • Error Code: GIT-ERR-9
  • Error Name: gitRepoNotFound
  • Description: The specified remote Git repository could not be found. Please verify the URL and ensure the repository exists and is accessible.

GIT-ERR-10

  • Error Code: GIT-ERR-10
  • Error Name: gitFindBranchFailed
  • Description: An error occurred while searching for a specific branch. The branch name may be malformed or the search operation itself failed.

GIT-ERR-11

  • Error Code: GIT-ERR-11
  • Error Name: gitBranchNotFound
  • Description: The specified branch name could not be found in the repository.

GIT-ERR-12

  • Error Code: GIT-ERR-12
  • Error Name: gitDeleteBranchFailed
  • Description: The attempt to delete a local or remote branch failed. This may be due to insufficient permissions or because the branch is protected.

GIT-ERR-13

  • Error Code: GIT-ERR-13
  • Error Name: gitFileNotFound
  • Description: The requested file could not be found at the specified path within the given branch or commit of the Git repository.

GIT-ERR-14

  • Error Code: GIT-ERR-14
  • Error Name: gitUploadFailed
  • Description: An error occurred while attempting to upload a file to the Git repository.

GIT-ERR-15

  • Error Code: GIT-ERR-15
  • Error Name: gitDownloadFailed
  • Description: An error occurred while attempting to download a file from the Git repository. Check file path, permissions, and network connectivity.

GIT-ERR-16

  • Error Code: GIT-ERR-16
  • Error Name: gitConnectionFailed
  • Description: A connection to the remote Git server could not be established. Please check your network connection, firewall settings, and the remote server's status.

GIT-ERR-17

  • Error Code: GIT-ERR-17
  • Error Name: gitLfsError
  • Description: An unspecified error occurred during a Git LFS (Large File Storage) operation. Check LFS configuration and logs for more details.

GIT-ERR-18

  • Error Code: GIT-ERR-18
  • Error Name: fileTooLarge
  • Description: The file exceeds the configured maximum size limit for this operation. Consider using Git LFS for large files.

GIT-ERR-19

  • Error Code: GIT-ERR-19
  • Error Name: gitGetTreeEntryFailed
  • Description: Get git tree entry failed. This can be caused by network problems, authentication issues, or the specified tree entry does not exist.

GIT-ERR-20

  • Error Code: GIT-ERR-20
  • Error Name: gitCommitFilesFailed
  • Description: Commit git files failed. This can be caused by network problems, authentication issues, or the specified files do not exist.

GIT-ERR-21

  • Error Code: GIT-ERR-21
  • Error Name: gitGetBlobsFailed
  • Description: Get git blobs failed. This can be caused by network problems, authentication issues, or the specified blobs do not exist.

GIT-ERR-22

  • Error Code: GIT-ERR-22
  • Error Name: gitGetLfsPointersFailed
  • Description: Get git lfs pointers failed. This can be caused by network problems, authentication issues, or the specified lfs pointers do not exist.

GIT-ERR-23

  • Error Code: GIT-ERR-23
  • Error Name: gitListLastCommitsForTreeFailed
  • Description: Get git tree last commit failed. This can be caused by network problems, authentication issues, or the specified tree does not exist.

GIT-ERR-24

  • Error Code: GIT-ERR-24
  • Error Name: gitGetBlobInfoFailed
  • Description: Get git blob info failed. This can be caused by network problems, authentication issues, or the specified blob does not exist.

GIT-ERR-25

  • Error Code: GIT-ERR-25
  • Error Name: gitListFilesFailed
  • Description: Get git files failed. This can be caused by network problems, authentication issues, or the specified files do not exist.

GIT-ERR-26

  • Error Code: GIT-ERR-26
  • Error Name: gitCreateMirrorFailed
  • Description: Create mirror failed. This can be caused by network problems, authentication issues, or the specified repository does not exist.

GIT-ERR-27

  • Error Code: GIT-ERR-27
  • Error Name: gitMirrorSyncFailed
  • Description: Sync mirror failed. This can be caused by network problems, authentication issues, or the specified repository does not exist.

GIT-ERR-28

  • Error Code: GIT-ERR-28
  • Error Name: gitCheckRepositoryExistsFailed
  • Description: Check repository exists failed. This can be caused by network problems, authentication issues, or the specified repository does not exist.

GIT-ERR-29

  • Error Code: GIT-ERR-29
  • Error Name: gitCreateRepositoryFailed
  • Description: Create repository failed. This can be caused by network problems, authentication issues.

GIT-ERR-30

  • Error Code: GIT-ERR-30
  • Error Name: gitDeleteRepositoryFailed
  • Description: delete repository failed. This can be caused by network problems, authentication issues, or the specified repository does not exist.

GIT-ERR-31

  • Error Code: GIT-ERR-31
  • Error Name: gitGetRepositoryFailed
  • Description: get repository failed. This can be caused by network problems, authentication issues, or the specified repository does not exist.

GIT-ERR-32

  • Error Code: GIT-ERR-32
  • Error Name: gitServiceUnavaliable
  • Description: The Git hosting service is temporarily unavailable or unreachable. Please try again later.

GIT-ERR-33

  • Error Code: GIT-ERR-33
  • Error Name: gitCopyRepositoryFailed
  • Description: copy repository failed. This can be caused by network problems, authentication issues, or the specified repository does not exist.

GIT-ERR-34

  • Error Code: GIT-ERR-34
  • Error Name: gitReplicateRepositoryFailed
  • Description: replicate repository failed. This can be caused by network problems, authentication issues, or the specified repository does not exist.

Invitation Errors

INVITATION-ERR-0

  • Error Code: INVITATION-ERR-0
  • Error Name: userPhoneNotSet
  • Description: The phone number is not set, cannot create invitation code.

INVITATION-ERR-1

  • Error Code: INVITATION-ERR-1
  • Error Name: invitationNotFound
  • Description: The invitation not found.

INVITATION-ERR-2

  • Error Code: INVITATION-ERR-2
  • Error Name: userAlreadyHasInvitationCode
  • Description: The invitation code already exists.

License Errors

LICENSE-ERR-0

  • Error Code: LICENSE-ERR-0
  • Error Name: noActiveLicense
  • Description: No active license found for the current system.

LICENSE-ERR-1

  • Error Code: LICENSE-ERR-1
  • Error Name: licenseExpired
  • Description: The license is expired, could not be verified and imported.

Req Errors

REQ-ERR-0

  • Error Code: REQ-ERR-0
  • Error Name: errBadRequest
  • Description: The server could not understand the request due to malformed syntax or invalid request message framing.

REQ-ERR-1

  • Error Code: REQ-ERR-1
  • Error Name: errReqBodyFormat
  • Description: The format of the request body is invalid or cannot be parsed. For example, the provided JSON is malformed.

REQ-ERR-2

  • Error Code: REQ-ERR-2
  • Error Name: errReqBodyEmpty
  • Description: The request body is empty, but this endpoint requires a non-empty body to proceed.

REQ-ERR-3

  • Error Code: REQ-ERR-3
  • Error Name: errReqBodyTooLarge
  • Description: The size of the request body exceeds the server's configured limit for this endpoint.

REQ-ERR-4

  • Error Code: REQ-ERR-4
  • Error Name: errReqParamMissing
  • Description:

REQ-ERR-5

  • Error Code: REQ-ERR-5
  • Error Name: errReqParamDuplicate
  • Description: A parameter was provided more than once in the request, which is not allowed for this endpoint.

REQ-ERR-6

  • Error Code: REQ-ERR-6
  • Error Name: errReqParamInvalid
  • Description: A request parameter is invalid. It may be of the wrong type, outside the allowed range, or a value that is not permissible.

REQ-ERR-7

  • Error Code: REQ-ERR-7
  • Error Name: errReqParamOutOfRange
  • Description:

REQ-ERR-8

  • Error Code: REQ-ERR-8
  • Error Name: errReqParamTypeError
  • Description:

REQ-ERR-9

  • Error Code: REQ-ERR-9
  • Error Name: errReqContentTypeUnsupported
  • Description: The 'Content-Type' of the request is not supported by this endpoint. Please check the API documentation for allowed content types.

REQ-ERR-10

  • Error Code: REQ-ERR-10
  • Error Name: errRateLimitExceeded
  • Description: The user has sent too many requests in a given amount of time. Further requests will be blocked until the rate limit resets or a valid captcha is provided.

REQ-ERR-11

  • Error Code: REQ-ERR-11
  • Error Name: errLimitedIPLocation
  • Description: Requests originating from this IP location are restricted. To proceed, please complete a captcha verification.

REQ-ERR-12

  • Error Code: REQ-ERR-12
  • Error Name: errCaptchaIncorrect
  • Description: The provided captcha verification failed. Please try again with a valid captcha.

System Errors

SYS-ERR-0

  • Error Code: SYS-ERR-0
  • Error Name: internalServerError
  • Description: An unexpected condition was encountered on the server that prevented it from fulfilling the request. This is a catch-all for unhandled exceptions, such as marshalling errors or type conversion failures.

SYS-ERR-1

  • Error Code: SYS-ERR-1
  • Error Name: remoteServiceFail
  • Description: A request to a dependent downstream or external service failed. This is a generic error that should be converted to a more specific error in the calling component.

SYS-ERR-2

  • Error Code: SYS-ERR-2
  • Error Name: databaseFailure
  • Description: An unhandled or unexpected error occurred during a database operation, such as a lost connection (sql.ErrConnDone).

SYS-ERR-3

  • Error Code: SYS-ERR-3
  • Error Name: databaseNoRows
  • Description: A database query that was expected to return at least one row found no matching records. This is a system-level wrapper for sql.ErrNoRows.

SYS-ERR-4

  • Error Code: SYS-ERR-4
  • Error Name: databaseDuplicateKey
  • Description: An INSERT or UPDATE operation failed because it would have created a duplicate value in a column with a unique constraint.

SYS-ERR-5

  • Error Code: SYS-ERR-5
  • Error Name: lfsNotFound
  • Description: The system could not find or connect to the configured LFS service. This indicates a system configuration issue.

SYS-ERR-6

  • Error Code: SYS-ERR-6
  • Error Name: lastOrgAdmin
  • Description: The requested action to remove a user's admin role is prohibited because they are the sole administrator of an organization. This prevents the organization from being locked.

SYS-ERR-7

  • Error Code: SYS-ERR-7
  • Error Name: cannotPromoteSelfToAdmin
  • Description: The requested action to promote yourself to an administrator is prohibited.

SYS-ERR-8

  • Error Code: SYS-ERR-8
  • Error Name: cannotSetRepoVisibility
  • Description: The requested action to change the visibility setting of a repository is prohibited. Because sensitive check not passed.

Task Errors

TASK-ERR-0

  • Error Code: TASK-ERR-0
  • Error Name: noEntryFile
  • Description: The task requires a specific entry file to start execution (e.g., 'main.py' or 'app.js'), but no such file could be found in the specified source directory.

TASK-ERR-1

  • Error Code: TASK-ERR-1
  • Error Name: multiHostInferenceNotSupported
  • Description: The multi-host inference feature is currently only available for VLLM and SGLang frameworks. Other frameworks do not support this functionality.

TASK-ERR-2

  • Error Code: TASK-ERR-2
  • Error Name: multiHostInferenceReplicaCount
  • Description: For multi-host inference configuration, the minimum number of replicas must be greater than zero to ensure proper service operation.

TASK-ERR-3

  • Error Code: TASK-ERR-3
  • Error Name: multiHostNotebookNotSupported
  • Description: The multi-host notebook feature (running notebook tasks across multiple hosts) is not supported.

TASK-ERR-4

  • Error Code: TASK-ERR-4
  • Error Name: notEnoughResource
  • Description: The task requires more resources than are available in the cluster. This error occurs when the cluster does not have sufficient capacity to run the task.

TASK-ERR-5

  • Error Code: TASK-ERR-5
  • Error Name: clusterUnavailable
  • Description: The cluster is currently unavailable, either due to maintenance or other reasons. This error occurs when the cluster is not ready to accept new tasks.

User Errors

USER-ERR-0

  • Error Code: USER-ERR-0
  • Error Name: needPhone
  • Description: The request must include a phone number in the header or body to identify the target account.

USER-ERR-1

  • Error Code: USER-ERR-1
  • Error Name: needDifferentPhone
  • Description: The new phone number must be different from the current phone number.

USER-ERR-2

  • Error Code: USER-ERR-2
  • Error Name: phoneAlreadyExistsInSSO
  • Description: The new phone number already exists in sso service.

USER-ERR-3

  • Error Code: USER-ERR-3
  • Error Name: forbidChangePhone
  • Description: The phone number cannot be changed.

USER-ERR-4

  • Error Code: USER-ERR-4
  • Error Name: failedToUpdatePhone
  • Description: Failed to update phone number.

USER-ERR-5

  • Error Code: USER-ERR-5
  • Error Name: forbidSendPhoneVerifyCodeFrequently
  • Description: Send phone verify code frequently.

USER-ERR-6

  • Error Code: USER-ERR-6
  • Error Name: failedSendPhoneVerifyCode
  • Description: Failed to send phone verify code.

USER-ERR-7

  • Error Code: USER-ERR-7
  • Error Name: phoneVerifyCodeExpiredOrNotFound
  • Description: Phone verify code expired or not found.

USER-ERR-8

  • Error Code: USER-ERR-8
  • Error Name: phoneVerifyCodeInvalid
  • Description: Phone verify code is invalid.

USER-ERR-9

  • Error Code: USER-ERR-9
  • Error Name: verificationCodeRequired
  • Description: Verification code can not be empty.

USER-ERR-10

  • Error Code: USER-ERR-10
  • Error Name: verificationCodeLengthInvalid
  • Description: Verification code length must be 6.

USER-ERR-11

  • Error Code: USER-ERR-11
  • Error Name: invalidPhoneNumber
  • Description: Invalid phone number.

USER-ERR-12

  • Error Code: USER-ERR-12
  • Error Name: usernameExists
  • Description: The username provided already exists in the system.

USER-ERR-13

  • Error Code: USER-ERR-13
  • Error Name: emailExists
  • Description: The email address provided already exists in the system.