Restricting commands used in http api