added exception for failed http request