url_expander
url_expander copied to clipboard
Correctly handle non-OK bitly responses
If response status != 200 (e.g. 403 when rate limit exceeded) then in the response body data['data']
is an array, and trying to access data['data']['expand'].first
results in an error.