Your writ of habeas corpus must state the specific relief you are requesting and the reasons you are requesting it. 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. This FindLaw article explains the origins of the writ of habeas corpus, how to file, and limitations on filing. The writ of habeas corpus is basically the writ requiring a person under arrest to be brought before a judge or into court. The writ of habeas corpus primarily acts as a writ of inquiry, issued to test the reasons or grounds for restraint and detention. 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, A writ employed to bring a person before a court, most frequently to ensure that the party's imprisonment or detention is not illegal. 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 kind of petition that you can file in federal court to claim that your imprisonment violates federal law.