implemented retry option for getting http status of an endpoint