Error handling

If an OAuth error is encountered, it’ll be a JSON encoded array similar to:

1
2
3
4
{
  "error": "invalid_grant",
  "error_description": "The access token provided has expired."
}

If a system error encountered, it’ll be a JSON encoded array similar to:

1
2
3
4
5
6
{
  "error": {
        "message": "You do not have access to the requested area/action.",
        "code": 403
    }
}