The U.S. Constitution specifically includes the habeas procedure in the Suspension Clause (Clause 2), located in Article One, Section 9. This states that "The privilege of the writ of habeas corpus shall not be suspended, unless when in cases of rebellion or invasion the public safety may require it".
It's been called the second Magna Carta by some, and the “great writ” by others. What we are referring to is habeas corpus, a Latin phrase meaning “you should have the body.” Put most simply, habeas corpus allows a person who has been detained the chance to challenge that detention in court.
A habeas corpus petition attacking a criminal conviction or sentence shall be filed within two years from the date of final judgment in the trial court or within one year from either final disposition of the direct appeal in state court or the time for filing such appeal has expired, whichever is later.
Article I, Section 9, Clause 2: The Privilege of the Writ of Habeas Corpus shall not be suspended, unless when in Cases of Rebellion or Invasion the public Safety may require it.
A writ of habeas corpus orders the custodian of an individual in custody to produce the individual before the court to make an inquiry concerning his or her detention, to appear for prosecution (ad prosequendum) or to appear to testify (ad testificandum).
A federal petition for writ of habeas corpus under 28 U.S.C. § 2254 is used by a (1) state prisoner (2) being held in state custody (3) to challenge the validity of a state criminal conviction or sentence (4) for the purpose of obtaining release from custody.
State every ground (reason) that supports your claim that you are being held in violation of the Constitution, laws, or treaties of the United States. Attach additional pages if you have more than four grounds. State the facts supporting each ground. Any legal arguments must be submitted in a separate memorandum.
Ask the court for a writ of habeas corpus (a court order telling a public official, like a prison warden, to bring you to the court and show a legal reason for holding you) to challenge your criminal conviction or commitment to another facility or the conditions under which you are being held.
The court must rule on a petition for writ of habeas corpus within 60 days after the petition is filed. (B) If the court fails to rule on the petition within 60 days of its filing, the petitioner may file a notice and request for ruling.
After the Writ of Habeas Corpus is filed, the Court has a few options. The Court may deny the Writ, the Court may request that the government submit a response to the Writ, or the Court may grant the Writ.