Use status code in http module