Upgraded to new HTTPError objects
Changed way in which errors are handling