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. If you need to file in one of the other counties, get the forms you will need from the family law facilitator, if there is one, or the Superior Court clerk.How Do I File a Writ of Habeas Corpus? 010, Who may prosecute writ. 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. Federal prisoners may file two different kinds of motions for post-conviction relief: "Section 2255 motions" and "Section 2241 habeas corpus petitions." Federal habeas corpus is a procedure under which a federal court may review the legality of an individual's incarceration. Habeas corpus is a kind of petition that you can file in federal court to claim that your imprisonment violates federal law. A habeas petition may only be filed on behalf of a person who is "in custody" pursuant to the judgment of a State Court. An application for a writ of habeas corpus must be made to the appropriate district court.