handle HTTPError exception while textifing