pulled out fxn for checking http status