Check if the http response is valid, and throw an error if not.
The original URL that was to be updated.
The update response.
Check if the http response is valid, and throw an error if not.