Skip to content

Errors

PUT /token Errors

Status Code Description of possible error
400 Malformed request, check for syntax errors
401 Actor is locked or blocked, request body is missing required properties, the date/time stamp is formatted incorrectly, or authentication was unsuccessful. Various console messages may indicate specific details of the failed request.
404 "UnauthorizedError: Unauthorized, "UnauthorizedError: Error, request body does not contain all the required ingredients"
500 "no access to token database" or invalid "channel"

DELETE /token Errors

Status Code Description of possible error
500 "Error: No token."

Error Examples

Error Description Parameters/Request Body Response Body
401 token Login Error Unauthorized REQUEST BODY
{
"channel": "test",
  "deviceTag":"unknownDeviceTag",
  "deviceData": {
      "platform": "test"
    }
}
RESPONSE BODY
Unauthorized
401 token Login Error Can not authenticate the user REQUEST BODY
{
"channel": "test",
  "deviceTag":"peloran",
  "deviceData": {
      "platform": "test"
    }
}
RESPONSE BODY
{
    "error": true,
    "text": "Error: can not authenticate the user"
}