print http request response in case of error