deal with error while access http