Pass exception object to HTTPError instead of message only.