def _validate_response(url, response):
if response['<STR_LIT:status>'] not in [GooglePlaces.RESPONSE_STATUS_OK,<EOL>GooglePlaces.RESPONSE_STATUS_ZERO_RESULTS]:<EOL><INDENT>error_detail = ('<STR_LIT>' %<EOL>(url, response['<STR_LIT:status>']))<EOL>raise GooglePlacesError(error_detail)<EOL><DEDENT>
Validates that the response from Google was successful.