Check API response for errors

check_response_error(response)

Arguments

response

A response object.

Value

NULL. Raises an error if response has an error code.