API Errors

When there is an error with any of the API calls, the response will have a non-200 HTTP status code and a JSON body describing the error. Besides from the common API errors listed, each API call will have its own errors described in their respective sections.

PropertyTypeDescription
errorsError[]see Error resource

Example:

{
  "errors": [
    {
      "error_code": "NOT_AUTHENTICATED",
      "error_message": "please authenticate",
      "more_info": "[http://www.yelp.com/developers/documentation/v2/overview](http://www.yelp.com/developers/documentation/v2/overview)"
    }
  ]
}

Error

PropertyTypeDescription
objectutf8_string(1..256)object type, value: Error
error_codeutf8_string(1..64)error code
error_messageutf8_string(1..1024)error message
more_infoutf8_string(1..1024)link to Yelp docs for the error message

Common API Errors

Statuserror_codeerror_message (example)
400FIELD_REQUIRED is required
400VALIDATION_ERROR is invalid:
401UNAUTHORIZEDPlease authenticate
500INTERNAL_SERVER_ERRORSomething is wrong with Yelp