Checking for http status