Fix cheking http status