Added cancellation on receiving non-200 HTTP response.