Error Codes

The following is a list of all the error codes that can be returned by the Drupal Javascript SDK API. You may also refer to RFC2616 for a list of http error codes. Make sure to check the error message for more details.

ATTENTION

Not all error codes listed below are implemented. For now, this serves as a guide for developers for implementing a standardised set of error codes.

CONSTANTNUMERIC CODEDESCRIPTION
UNDEFINED-1Error code indicating some error other than those enumerated here.
INTERNAL_SERVER_ERROR1Error code indicating that something has gone wrong with the server.
MISSING_IMPLEMENTATION_ERROR42Error code indicating the sdk has encountered a missing implementation.
CONNECTION_FAILED100Error code indicating the connection to the Drupal server failed.
OBJECT_NOT_FOUND101Error code indicating the specified object doesn't exist.
INVALID_QUERY102Error code indicating you tried to query with a datatype that doesn't
INVALID_CLASS_NAME103Error code indicating a missing or invalid classname. Classnames are the only valid characters.
MISSING_OBJECT_ID104Error code indicating an unspecified object id.
INVALID_KEY_NAME105Error code indicating an invalid key name. Keys are case-sensitive. Theys.
INVALID_POINTER106Error code indicating a malformed pointer. You should not see this unless
INVALID_JSON107Error code indicating that badly formed JSON was received upstream. This things encode to JSON, or the network is failing badly.
COMMAND_UNAVAILABLE108Error code indicating that the feature you tried to access is only
NOT_INITIALIZED109You must call Drupal.initialize before using the Drupal library.
INCORRECT_TYPE111Error code indicating that a field was set to an inconsistent type.
INVALID_CHANNEL_NAME112Error code indicating an invalid channel name. A channel name is either characters and starts with a letter.
PUSH_MISCONFIGURED115Error code indicating that push is misconfigured.
OBJECT_TOO_LARGE116Error code indicating that the object is too large.
OPERATION_FORBIDDEN119Error code indicating that the operation isn't allowed for clients.
CACHE_MISS120Error code indicating the result was not found in the cache.
INVALID_NESTED_KEY121Error code indicating that an invalid key was used in a nested
INVALID_FILE_NAME122Error code indicating that an invalid filename was used for DrupalFile.n 1 and 128 characters.
INVALID_ACL123Error code indicating an invalid ACL was provided.
TIMEOUT124Error code indicating that the request timed out on the server. Typically
INVALID_EMAIL_ADDRESS125Error code indicating that the email address was invalid.
MISSING_CONTENT_TYPE126Error code indicating a missing content type.
MISSING_CONTENT_LENGTH127Error code indicating a missing content length.
INVALID_CONTENT_LENGTH128Error code indicating an invalid content length.
FILE_TOO_LARGE129Error code indicating a file that was too large.
FILE_SAVE_ERROR130Error code indicating an error saving a file.
DUPLICATE_VALUE137Error code indicating that a unique field was given a value that is
INVALID_ROLE_NAME139Error code indicating that a role's name is invalid.
EXCEEDED_QUOTA140Error code indicating that an application quota was exceeded. Upgrade to
SCRIPT_FAILED141Error code indicating that a Cloud Code script failed.
VALIDATION_ERROR142Error code indicating that a Cloud Code validation failed.
INVALID_IMAGE_DATA143Error code indicating that invalid image data was provided.
UNSAVED_FILE_ERROR151Error code indicating an unsaved file.
INVALID_PUSH_TIME_ERROR152Error code indicating an invalid push time.
FILE_DELETE_ERROR153Error code indicating an error deleting a file.
FILE_DELETE_UNNAMED_ERROR161Error code indicating an error deleting an unnamed file.
REQUEST_LIMIT_EXCEEDED155Error code indicating that the application has exceeded its request
DUPLICATE_REQUEST159Error code indicating that the request was a duplicate and has been discarded due to
INVALID_EVENT_NAME160Error code indicating an invalid event name.
INVALID_VALUE162Error code indicating that a field had an invalid value.
USERNAME_MISSING200Error code indicating that the username is missing or empty.
PASSWORD_MISSING201Error code indicating that the password is missing or empty.
USERNAME_TAKEN202Error code indicating that the username has already been taken.
EMAIL_TAKEN203Error code indicating that the email has already been taken.
EMAIL_MISSING204Error code indicating that the email is missing, but must be specified.
EMAIL_NOT_FOUND205Error code indicating that a user with the specified email was not found.
SESSION_MISSING206Error code indicating that a user object without a valid session could
MUST_CREATE_USER_THROUGH_SIGNUP207Error code indicating that a user can only be created through signup.
ACCOUNT_ALREADY_LINKED208Error code indicating that an an account being linked is already linked
INVALID_SESSION_TOKEN209Error code indicating that the current session token is invalid.
MFA_ERROR210Error code indicating an error enabling or verifying MFA
MFA_TOKEN_REQUIRED211Error code indicating that a valid MFA token must be provided
LINKED_ID_MISSING250Error code indicating that a user cannot be linked to an account because
INVALID_LINKED_SESSION251Error code indicating that a user with a linked (e.g. Facebook) account
UNSUPPORTED_SERVICE252Error code indicating that a service being linked (e.g. Facebook or
INVALID_SCHEMA_OPERATION255Error code indicating an invalid operation occured on schema
AGGREGATE_ERROR600Error code indicating that there were multiple errors. Aggregate errorsore detail about each error that occurred.
FILE_READ_ERROR601Error code indicating the client was unable to read an input file.
X_DOMAIN_REQUEST602Error code indicating a real error code is unavailable becausets in Internet Explorer, which strips the body from HTTP responses that have a non-2XX status code.
STORAGE_IN_MEMORY_FAIL700Error code indicating in memory storage failure.
STORAGE_IN_WEB_FAIL701Error code indicating in web storage failure.