ross-weir/ergo_client

Raise errors for response in all requests

Closed this issue · 0 comments

Call .error_for_status() before calling json() for all request responses

Edit: I actually don't think we want this, the response body often contains information about why the request was rejected which would be valuable. For now I will use error_for_status but in the future handle response errors better instead by returning the body details if there is one