In some odd cases HTTPResponse returns None instead of a file handle. Raise HTTPError when that happens.