Status codes

API status codes, what they mean, and when they can be returned.

status (in JSON response) and WebSocket close codes are different things:

  • status describes result of one API operation.
  • close code ends the whole socket session.

Status codes

CodeStatusWhen it can be returned
0NoneReserved value to indicate no status.
1OkOperation completed successfully.
2InvalidAPIKeywebsocket_api_key has invalid format/length.
3NotAuthorizedOperation requires authorization, but current session is not authorized for it.
4AlreadyInitializedInitialize was called on an already initialized session.
5TooManyRequestsRequest exceeded operation-specific request limits (for example account creation limit from one IP).
6InternalServerErrorServer failed to process request due to an internal error.
7AlreadyAuthorizedAuthorization was requested for a session that is already authorized.
8RateLimitedReserved status for API throttling responses. Current documented WebSocket flows mainly surface throttling through HTTP 429, close code 4201, or packet-specific TooManyRequests.
100LicenseNotFoundProvided license was not found in the application.
101LicenseTooShortProvided license is shorter than allowed minimum length.
102LicenseTooLongProvided license is longer than allowed maximum length.
103LicenseExpiredLicense exists but is expired at validation/read time.
104LicensePausedLicense exists but is paused.
105LicenseBlacklistedLicense exists but is blacklisted.
106LicenseAlreadyLinkedLicense is already linked to an account and cannot be linked again.
107LicenseAlreadyActivatedLicense is already activated and cannot be activated again in this flow.
200AppUserNotFoundApplication user was not found (or provided credentials are invalid in auth flows).
201AppUserBlacklistedApplication user is blacklisted.
202AppUserAlreadyExistsAccount creation failed because account already exists.
203AppUserHasNoValidLicensesUser has no active licenses required for requested operation.
204AppUserRequiresLicenseOperation requires non-empty license input, but request does not provide valid license value.
205AppUserLoginTooShortlogin is shorter than allowed minimum length.
206AppUserLoginTooLonglogin is longer than allowed maximum length.
207AppUserPasswordTooShortpassword is shorter than allowed minimum length.
208AppUserPasswordTooLongpassword is longer than allowed maximum length.
209AppUserEmailInvalidlogin is not a valid email format when email credentials mode is used.
210AppUserCredentialsTypeInvalidcredentials_type contains unsupported value.
300FileNotFoundRequested file was not found.
301FileInvalidNamefilename has invalid value (for example too short).
302FileChecksumMismatchFile checksum validation failed on client side after transfer.
303FileInvalidResumeOffsetresume_at is outside valid file range for resume.
304FileStorageQuotaExceededFile transfer/storage quota was exceeded.
305FileNotBeingTransferredStop-transfer request was sent for a file that has no active transfer in this session.
306FileTransferStoppedActive file transfer was stopped before completion.
400VariableNotFoundRequested application variable was not found.
401VariableInvalidNameVariable name has invalid value (for example too short).
500ClientIDTooShortclient_id is shorter than allowed minimum length.
501ClientIDTooLongclient_id is longer than allowed maximum length.
502ClientIDMismatchLicense/account is bound to a different client_id than current session.
503ClientIDBlacklistedclient_id is blacklisted for the application.
600AppNotFoundApplication was not found for provided API key.
601AppPausedApplication is paused.
602AppSessionsQuotaExceededAuthorized sessions count reached the application plan limit.
603AppAccountsQuotaExceededAccounts quota reached for the application plan.
604AppBlacklistsQuotaExceededBlacklist entries quota reached for the application plan.
700StoreValueNotFoundSession store value for requested key is missing or expired.
701StoreOutOfMemorySession store memory limit is exceeded for this write.
702StoreOutOfEntriesSession store entries count limit is exceeded for this write.

Special cases

  • None is used only for intermediate stream chunks in Transfer file.
  • FileChecksumMismatch is a client-side status and is not sent by server.

On this page