Generic Errors

Unexpected error (500)##

When an unexpected error occurs (our system is not available or there is an unknown error)

{
        "code": "5000000000",
        "developerMessage": "string"
    }

Validation Error (400)##

When a property of a request body has a validation rule (regex, size etc) and an invalid value was given.

{
        "code":"400000000",
        "developerMessage":"Validation Error!",
        "properties":{
            "property1":"string",
            "property2":"string"
        }
    }
KEYDESCRIPTION
propertiesAn object having the name of the property as the key (which contains an invalid value) and the error message as the value.

Example##

{  
   "code":"400000000",
   "developerMessage":"Validation Error!",
   "properties":{  
      "name":"may not be empty",
      "username":"size must be between 6 and 15"
   }
}

What’s Next