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. To get a writ of habeas corpus, you must file a petition for a civil (not criminal) proceeding in either state or federal court. This FindLaw article explains the origins of the writ of habeas corpus, how to file, and limitations on filing. At the state level in Florida, the writ can be filed in the circuit court, the district court of appeals or even the state supreme court. Habeas corpus is used to challenge the legality of the detention or restraint of a person and to obtain the person's prompt release. Initiate the sanity proceedings set out in section 922.07, Florida Statutes) (1985). The same holding exists under federal law. Generally, anyone detained or imprisoned can file a petition for a writ of habeas corpus in the United States.