Writs are legal orders issued by a court. In India, the Supreme Court (under Article 32) and the High Courts (under Article 226) can issue five types of writs: Habeas Corpus, Mandamus, Prohibition, Certiorari, and Quo-Warranto. These writs are powerful tools for the enforcement of Fundamental Rights and for maintaining the rule of law. Quo-Warranto is issued to restrain a person from holding a public office to which he is not entitled. Mandamus is a command issued to a public official or a public body to perform a duty they are legally bound to perform. Habeas Corpus is issued to produce a person who has been detained, allowing the court to inquire into the legality of the detention. Certiorari is issued by a higher court to a lower court or tribunal to quash an order or proceeding that is beyond its jurisdiction or contains an error of law apparent on the face of it.