Uniform check on status using http code