home

Mobile Endpoint Security

Lookout Product Documentation

Find answers about using and optimizing Lookout products.

Error Response Schemas

The following example shows the schema for a Mobile Risk API Service Error:

{
  "id": "http://api.lookout.com/events-error-schema#",
  "title": "Lookout Mobile Risk API Error Schema",
  "description": "An error response from the Lookout Mobile Risk API",
  "type": "object",
  "required": ["type", "statusCode", "errorCode", "message", "requestId"],
  "properties": {
    "type": { "enum": ["Error"] },
    "statusCode": {"enum": [400, 401, 404, 406, 408, 500] },
    "errorCode": { "type": "string" },
    "message": { "type": "string" },
    "requestId": { "type": "string" }
  }
}

The following example shows the schema for an Authentication/Authorization Error:

{
  "id": "http://api.lookout.com/oauth-error-schema#",
  "title": "Lookout OAuth Error : RFC 6749",
  "description": "An error response from the Lookout OAuth Service",
  "type": "object",
  "required": ["error"],
  "properties": {
    "error": { "enum": ["invalid_request", "invalid_client", "invalid_grant", "unauthorized_client", "unsupported_grant_type", "invalid_scope"] },
    "error_description": { "type": "string" },
    "error_uri": { "type": "string" },
  }
}