Error Codes If a request is unsuccessful, it returns a non-200 http status code and a predictable json response.
Error Codes
The following is the standard template for error responses:
{
  "error": true,
  "error_code": <code>,
  "error_message": <plain english error message>
}
For example, if authorization fails:
{
  "error": true,
  "code": 401,
  "details": "Unauthorized Access."
}
If EatStreet cannot geocode a given address:
{
  "error": true,
  "code": 450,
  "details": "Unable to locate address."
}
If the request references an api key that does not exist (ex. Restaurant, Item, User):
{
  "error": true,
  "code": 404,
  "details": "Object does not exist."
}