Add headers support to HTTPError