Raise ClientException on HTTP errors