HttpException is raised for all non-2xx responses