Error Responses

Server Code error responses.

Collection

Error responses for the Collection methods.

getCollectionList

The method may return the following error messages:

HTTP status codeCodeDescription
401DBSL001Unauthorized.
403DBSL003You do not have permission to access the specified database.
404DBSL014Database with id=dbApiKey does not exist.

createObject

HTTP Status CodeCodeDescription
401DBPL001Authorized
403DBPL003You do not have permission to access specified database.
404DBPL014Database with id=<database_id> does not exist.
404DBPL207Metadata doesn’t contain collection with id=<database_id>.
400BPL209Invalid collection ID: id=<database_id>.

retrieveObject

HTTP Status CodeCodeDescription
401DBSG001Unauthorized
400DBSG002Invalid session token specified.
403DBSG003You do not have permission to access specified database.
404DBSG014Database with id=<database_id> does not exist.
404DBSG203Collection <collection_name> absent in database with id <database_id>.
403DBSG201Collection doesn’t have the READ permission.
404DBSG204Collection with id <collection_id> does not exist
404DBSG205Collection <collection_name> doesn’t contain object with id <object_id>.
400DBSG210Invalid object ID: <object_id>.
400DBSG263Incorrect projection
400DBSG237The column you are trying to include does not exist:
400DBSG238The column you are trying to include is not of the Pointer type:
400DBSG239Error including exceed 10 levels of pointer values.
403DBSG254You don’t have permission to access system collections.
400DBSG264Mongo error: error code is: %s.
400DBSG265Mongo error
403DBSG333Access denied: you don’t have %s permission on specified object

updateObject

HTTP Status CodeCodeDescription
400DBSU002Invalid session token specified.
404DBSU014Database with id=<database_id> does not exist.
403DBSU020Using reserved database name tiggzi-iods is forbidden.
403DBSU202Collection doesn’t have the WRITE permission.
404DBSU203Collection <collection_name> absent in database with id <database_id>.
404DBSU205Collection <collection_name> doesn’t contain object with id <object_id>.
404DBSU207Metadata doesn’t contain collection with id=<collection_id>.
400DBSU210Invalid object ID: <object_id>.
400DBSU234Creation and modification objects with system fields not allowed.
400DBSU211must have unique value
400DBSU212cannot be null.
400DBSU213Field <field_name> is already present.
400DBSU217Index does not allow fields with non-unique values.
400DBSU218Invalid object: <object>.
400DBSU221Cannot set value of type Object to the Array column. Possibly the __op field is missing.
400DBSU222Cannot set value of type Object to Array column. Possibly the objects field is missing.
400DBSU223__op field must have a String value
400DBSU224__op field must have a non-empty String value
400DBSU225objects field must have an Array value.
400DBSU226objects field must have a non-empty String value.
400DBSU227Unknown operation <operation_name>
400DBSU229Unknown type in metaData=<type> with value=<value>.
400DBSU230Date value should be in format “yyyy-mm-dd” : <value>.
400DBSU231<pointer_column_name> is missing for pointer column <collumn_name>.
400DBSU232Incoming object contain control attribute(s): <list_attributes>. Its usage is forbidden.
400DBSU241Pointer column value of field <field_name> must be JSON object but has <actual_type>.
400DBSU245Incorrect field: <field_name> of object.
400DBSU252Invalid value for type <type>: ‘<value>.
400DBSU246GeoPoint should be an array longitude, latitude of values in [ -180, 180 ].
403DBSU254You don’t have permission to access system collections.
403DBSU255Invalid collection name for pointer field <actual>. Expected <expected>.
403DBSU333Access denied: you don’t have <read|write> permission on specified object.

multiUpdateObject

HTTP Status CodeCodeDescription
400DBSP002Invalid session token specified
404DBSP014Database with id=<database_id> does not exist.
403DBSP020Using reserved database name tiggzi-iods is forbidden.
403DBSP202Collection doesn’t have the WRITE permission.
404DBSP203Collection <collection_name> is absent from the database with id <database_id>.
404DBSP207Metadata doesn’t contain collection with id=<collection_id>.
400DBSP234Creating or editing system columns in an object is not allowed. System column name starts with underscore ( _).
400DBSP211Field <field_name> must have unique value
400DBSP212Field <field_name> cannot be null
400DBSP217Index does not allow fields with non-unique values
400DBSP219Incorrect query
400DBSP221Cannot set value of type Object to Array column. Possibly __op field is missing.
400DBSP222Cannot set value of type Object to Array column. Possibly ‘objects’ field is missing.
400DBSP223__op field must have a String value.
400DBSP224__op field must have a non-empty String value
400DBSP225objects field must have an Array value
400DBSP226'objects` field must have a non-empty String value.
400DBSP227Unknown operation <operation_name>
400DBSP229Unknown type in metaData=<type> with value=<value>
400DBSP230Date value should be in fomat “yyyy-mm-dd” : <value>
400DBSP231<pointer_column_name> is missing for pointer column <collumn_name>.
400DBSP232Incoming object contain control attribute(s): <list_attributes>. Its usage is forbidden.
400DBSP236Collection name contains invalid character.
400DBSP241Pointer column value of field <field_name> must be JSON object but has ‘<actual_type>`.
400DBSP245Incorrect field: <field_name> of object.
400DBSP248Value of <$maxDistanceInKilometers|$maxDistanceInMiles|$maxDistanceInRadians> should be a number.
400DBSP249Geospatial query should include only 1 GeoPoint field at a time.
400DBSP250$and expression must be a nonempty array.
400DBSP252Invalid value for type <type>: <value>.
400DBSP246GeoPoint should be an array longitude, latitude of values in [ -180, 180 ].
403DBSP254You don’t have permission to access system collections.
400DBSP255Invalid collection name for pointer field <actual>. Expected <expected>.
400DBSP601Native operations object must be present.
400DBSP602Native operation works on fields with following types: number, string, boolean, date.
400DBSP603Operations $inc and $mul works only on fields with number type.
400DBSP604Operations $min and $max works only on fields with number or date types.
400DBSP605Field <field_name> is absent from the collection structure.
400DBSM606Update or operations object must be present (this error message visible only from sc-collection-api).
400DBSM607Invalid update object: <object> (this error message visible only from sc-collection-api).
400DBSM608Invalid operations object: <object> (this error message visible only from sc-collection-api).

deleteObject

HTTP Status CodeCodeDescription
400DBSD002Invalid session token specified.
404DBSD014Database with id=<database_id> does not exist.
403DBSD020Using reserved database name tiggzi-iods is forbidden.
403DBSD201Collection doesn’t have the READ permission.
403DBSD202Collection doesn’t have the WRITE permission.
404DBSD203Collection <collection_name> is absent from the database with id <database_id>.
404DBSD205Collection <collection_name> doesn’t contain the object with id <object_id>.
404DBSD207Metadata doesn’t contain collection with id=<collection_id>.
403DBSD254You don’t have permission to access system collections.
403DBSD333Access denied: you don’t have <read|write> permission on the specified object.
##query  
HTTP Status CodeCodeDescription
400DBSQ002Invalid session token specified.
404DBSQ014Database with id=<database_id> does not exist.
400DBSQ236Collection name contains invalid character.
404DBSQ207Metadata doesn’t contain collection with id=<collection_id>.
400DBSQ219Incorrect query.
400DBSQ263Incorrect projection.
400DBSQ240Wrong URL parameter <skip|limit> with value <value>, cause: <description_reason>.
400DBSQ237The column you are trying to include does not exist: <column_name>.
400DBSQ238The column you are trying to include is not of the Pointer type: <another_type>.
400DBSQ239Error including more than 10 levels of pointer values.
400DBSQ248Value of <$maxDistanceInKilometers|$maxDistanceInMiles|$maxDistanceInRadians> should be a number.
400DBSQ249Geospatial query should include only 1 GeoPoint field at a time.
400DBSQ250$and expression must be a nonempty array.
404DBSQ203Collection <collection_id> absent in database with id <database_id>.
403DBSQ201Collection doesn’t have the READ permission.
403DBSQ254You don’t have permission to access system collections.
400DBSQ264Mongo error: error code is %s
400DBSQ265Mongo error: %s

distinct

HTTP Status CodeCodeDescription
400DBSV002Invalid session token specified.
404DBSV014Database with id=<database_id> does not exist.
400DBSV219Incorrect query.
400DBSV237The column you are trying to include does not exist: <column_name>.
400DBSV248Value of <$maxDistanceInKilometers|$maxDistanceInMiles|$maxDistanceInRadians> should be a number.
400DBSV249Geospatial query should include only 1 GeoPoint field at a time.
400DBSV250$and expression must be a nonempty array.
404DBSV203Collection <collection_name> is absent from the database with id <database_id>.
403DBSV201Collection doesn’t have the READ permission.
403DBSV254You don’t have permission to access system collections.

DatabaseUser

Error responses for DatabaseUser methods.

login

HTTP Status CodeCodeDescription
404DBUI014Database with id=<database_id> does not exist.
400DBUI106User name must be present.
400DBUI107User password must be present.
404DBUI110User %s does not exist.
400DBUI112Login with wrong password.
400DBUI021Master Key should not be empty (error is present only in server code databaseUser api).
400DBUI510Login with wrong master key (error present only in server code databaseUser api).

logout

HTTP Status CodeCodeDescription
401DBUO001Unauthorized
400DBUO002Invalid session token is specified.
403DBUO003Forbidden
404DBUO014Database with id=<database_id> does not exist.

signUp

HTTP Status CodeCodeDescription
404DBUS014Database with id=<database_id> does not exist.
400DBUS101New user must not have the _id field.
400DBUS102New user must have name.
400DBUS103New user must have password.
400DBUS111User <username> already exists in database.
400DBUS234Creation and modification objects with system fields is not allowed.
400DBUS211Field <field_name> must have a unique value.

update

HTTP Status CodeCodeDescription
401DBUU001Unauthorized
400DBUU002Invalid session token specified.
403DBUU003Forbidden
404DBUU014Database with id=<database_id> does not exist.
404DBUU109User with id <user_id> is absent from the database <database_id>.
400DBUU104User must be specified and can’t be null or empty.
400DBUU105Username can’t be null or empty.
400DBUU111User <username> already exists in database.
400DBUU210Invalid object ID: <object_id>.
400DBUU234Creation and modification objects with system fields is not allowed.
300DBUU212Field <field_name> cannot be null.
403DBUU333Access denied: you don’t have %s permission on specified object.

retrieve

HTTP Status CodeCodeDescription
401DBUG001Unauthorized
400DBUG002Invalid session token is specified.
403DBUG003Forbidden
404DBUG014Database with id=<database_id> does not exist.
404DBUG108User with id <user_object_id> is not found.
400DBUG263Incorrect projection

remove

HTTP Status CodeCodeDescription
401DBUD001Unauthorized
400DBUD002Invalid session token specified.
403DBUD003Forbidden
404DBUD014Database with id=<database_id> does not exist.
404DBUD108User with id <user_object_id> is not found.

query

HTTP Status CodeCodeDescription
401DBUQ001unauthorized
400DBUQ002Invalid session token is specified.
404DBUQ014Database with id=<database_id> does not exist.
400DBUQ219Incorrect query
400DBUQ263Incorrect projection
400DBUQ240Wrong URL parameter <skip|limit> with value <value>, cause: <description_reason>.
403DBUQ201Collection doesn’t have the READ permission.

Push Notifications

Error responses for Push notification methods.

send

HTTP Status CodeCodeDescription
404PNMM004Push API Key: <pushAPIKey> is not found.
400PNMM017Message can’t be empty.
400PNMM021Nobody is able to receive this message.
400PNMM056Database with id=<db_id> is not connected to push application
400PNMM062Badge cannot be negative.
404PNMM082iOS Push certificate is not set.
404PNMM084Android API key is not set.
404PNMM085iOS Push certificate password is not set.
404PNMM086Push message length can’t exceed 200 symbols for iOS devices.
404PNMM087Push message length can’t exceed 1024 symbols for android devices.
400PNMM101Empty scheduled time.
400PNMM102Empty time zone.

Response

Code NumberCode String
400Bad Request
401Unauthorized
403Forbidden
404Not Found
500Internal Server Error

📘

Error Code

If the code is not specified or is specified incorrectly, 500 (Internal Server Error) will be used.

Script Call

Error responses for the scriptCall methods.

call

HTTP Status CodeCodeDescription
403SCSX026Access denied: only authenticated users can access this script.
400SCSX049Script launch number quota is reached.
429SCSX050Script launch interval time has not elapsed.
404SCSX010Script is not found.
400SCSX014Script execution failed.
400SCSX018Script execution timed out.
500SCSX021This wasn’t supposed to happen.
400SCSX022Specified session token is no longer valid.
404SCSX047Script not accessible because the accessible property is set to false.

Script-Call-API specific error #16:

ErrorCodeDescription
Max depth in script API calling reached (to prevent infinite recursion).SCCS016Max depth (<maxDepth>) for script calls reached.

In Memory Data

put

CodeDescription
053In memory data max keys quota is reached.
054You can’t save more than %s symbols.

Crypto

sign

CodeDescription
SCSA72There is no such algorithm: %s
SCSA73Private key is invalid
SCSA75Error while signing message

verify

CodeDescription
SCSV72There is no such algorithm: %s
SCSV74Public key is invalid
SCSV76Error while verifying message

Mail

send

CodeDescription
SCMS90Can't parse API parameters
SCMS96Parameter %s is required
SCMS97Custom header should be String or Array of Strings
SCMS98Parameter %s is invalid
SCMS99Error during sending email, error was: %s