handle null http code