Fail, with information, if the status code is not 200. Return the parsed response content otherwise.

api_handle_response(x)

Arguments

x

an httr::response object.