Change checks to check for http status