Changed IOError to HTTPError because Mark said so.