DETAINED whether in prison or in private custody, before a court and to release him if such detention is found illegal.MandamusThis writ of command is issued by supreme or high court when any government, court, corporation or any PUBLIC authority has to do a public duty but fails to do so.CertiorariThe writ of certiorari can be issued by the supreme or high court for quashing the order already passed by an inferior court, tribunal or quasi-judicial authority.ProhibitionMeant to direct a subordinate to stop doing something that the law PROHIBITS. It is issued by a higher court to a lower courtQuo warrantoIssued to inquire into the legality of the CLAIM of a person or public office. It contains the authority to act in an office which is not entitled to stops the violation of public office by anyone. It is only applicable to public OFFICES and not in a private one.