added exception for httprequest call