blazeauth
Protocol

Status codes

APIStatus values returned in Blazeauth responses.

Status codes

Most Blazeauth responses include a numeric status field (APIStatus).

  • 1 means success (OK).
  • 0 means no status and is primarily used for file-transfer chunks.

General

CodeNameMeaning
0noneNo status (used for streaming chunks).
1okSuccess.
2invalid_api_keyAPI key is invalid or has an invalid format.
3not_authorizedOperation requires authorization but the session is not authorized.
4already_initializedinitialize was called more than once for the same connection.
5too_many_requestsPer-endpoint throttle (used by create_account).
6internal_server_errorServer-side error.
7session_value_not_foundRequested session key is missing or expired.
8already_authorizedAuthorization was already performed for the session.
9rate_limitedGlobal rate limit was hit.
10sessions_quota_exceededPlan quota for authorized sessions was exceeded.
11blacklists_quota_exceededPlan quota for blacklist entries was exceeded.
12accounts_quota_exceededPlan quota for accounts was exceeded.

License

CodeNameMeaning
100license_invalidLicense key does not exist or cannot be used.
101license_expiredLicense is expired (time left is <= 0).
102license_pausedLicense is paused (temporarily disabled).
103license_blacklistedLicense is blacklisted.
104license_already_linkedLicense is already linked to an account.
105license_already_activatedLicense is already activated.

Account

CodeNameMeaning
200account_not_foundAccount does not exist or credentials are wrong.
201account_blacklistedAccount is blacklisted.
202account_already_existsCannot create account because login/email is already taken.
203account_has_no_valid_licensesAccount requires a license, but no active licenses were found.
204account_requires_licenseApplication requires a license for account creation, but none was provided.
205account_login_too_longLogin/email is too long.
206account_login_too_shortLogin/email is too short.
207account_password_too_longPassword is too long.
208account_password_too_shortPassword is too short.
209account_email_invalidEmail is not a valid email address (email credentials type only).
210account_credentials_type_invalidUnknown credentials type.

File

CodeNameMeaning
300file_not_foundFile does not exist.
301file_invalid_nameFile name is invalid (too short).
302file_checksum_mismatchFile integrity check failed.
303file_invalid_resume_offsetResume offset is out of bounds.
304file_storage_quota_exceededStorage/transfer quota was exceeded during streaming.
305file_tokens_quota_exceededResume token quota was exceeded.
306file_not_being_transferredTried to stop a file transfer that is not active in this session.
307file_invalid_resume_tokenResume token does not exist or is invalid.
308file_transfer_stoppedFile transfer was stopped (see stop_file_transfer).

Variable

CodeNameMeaning
400variable_not_foundVariable does not exist.
401variable_invalid_nameVariable name is invalid (too short).

Client id

CodeNameMeaning
500client_id_too_longClient id is too long.
501client_id_mismatchClient id does not match the one bound to the license/account.
502client_id_blacklistedClient id is blacklisted.

Application

CodeNameMeaning
600app_not_foundApplication for the provided API key was not found.
601app_pausedApplication is paused.

On this page