WRIT OF HABEAS CORPUS ISSUED TO: Check the boxes and ill in blanks as needed to show what you want the court to order. ❖ Do not date and sign at the end.Use this if you have a court order giving you custody of your child and the other parent has taken your child away from you. It tests the legality of a detention or a restraint and the goal is to use it really almost i guess it's an emergency basis. A writ of habeas corpus requires that a person who is in custody be brought before a judge or court and that they be able to challenge that custody. The petition must be filed in the circuit court in which you were convicted and must be served on your custodian, i.e. 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. Every person restrained of his or her liberty under any pretense whatever, may prosecute a writ of habeas corpus to inquire into the cause of the restraint. This Chapter explains an important right—the writ of habeas corpus. How Do I File a Writ of Habeas Corpus?