added HTTPError exception for raising errors