Handle cancellation properly
Raise error on HTTP call failures