Contrary to what #44 suggests, there is actually solid error handling in this package, but 502 was absent from these handlers. We also were not handling the situation where there is not a decodable json attached to the response object. This PR defaults to grabbing the response.content instead, when json data is not present.
This fixes #44.
Contrary to what #44 suggests, there is actually solid error handling in this package, but
502
was absent from these handlers. We also were not handling the situation where there is not a decodablejson
attached to the response object. This PR defaults to grabbing theresponse.content
instead, whenjson
data is not present.