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. Prisoners can sometimes use a petition for writ of habeas corpus to challenge the legality of a criminal conviction or inhumane prison conditions.The writ of habeas corpus, also known as the Great Writ, is a U.S. legal process that determines whether an offender's imprisonment is valid. 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. 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. The U.S. Supreme Court interprets the Constitution, which means it defines constitutional rights and violations in the cases it decides. This petition, called a writ of Habeas Corpus, is filed in Federal Court (US District Court ) whether you are serving time in a federal or state prison. 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. A writ of habeas corpus is a petition filed with the court when a prisoner wishes to contest the legality of his imprisonment.