The writ of habeas corpus primarily acts as a writ of inquiry, issued to test the reasons or grounds for restraint and detention. The Writ of Habeas Corpus demands that requires a prisoner must go before the court to determine if there is lawful authority to detain the prisoner.Habeas corpus is a procedural device to bring child custody matters before a court. The writ of habeas corpus is a legal order requiring a person holding another person to produce that individual before a court or judge. The amended petition must be written on the courtapproved petition for writ of habeas corpus form. A writ of habeas corpus is a petition filed with the court when a prisoner wishes to contest the legality of his imprisonment. The meaning of WRIT OF HABEAS CORPUS is habeas corpus. Habeas corpus is a legal rule that requires a prisoner be presented in court and that the arrester prove that there is proper cause for detaining the prisoner. The Habeas Corpus petition claims the arrest, sentence, or trial violated constitutional law, making imprisonment unlawful. A writ of habeas corpus is a legal rule that gives a prisoner the right to request court assistance and show that they've been wrongfully imprisoned.