Writ of Habeas Corpus: Custody, Suspension, and Filing

A writ of habeas corpus is a court order that forces the government to bring a detained person before a judge and prove the detention is lawful. If the government cannot show a legal basis for holding the person, the court orders their release. The Latin phrase means, roughly, “you shall have the body,” and the writ is one of the oldest tools courts have for checking the executive’s power to lock people up. It is written into Article I, Section 9 of the U.S. Constitution, which forbids suspending it except during rebellion or invasion.1Constitution Annotated. Article I Section 9 Clause 2

A habeas petition is a civil proceeding, not part of the criminal case that put someone in custody. A criminal trial decides guilt. A habeas petition asks a different question: is the detention itself legal? A person can be factually guilty and still be entitled to release if the process that led to their imprisonment violated the Constitution badly enough. The petition names the specific official responsible for the custody, lays out the facts, and explains why the detention is unlawful.2Office of the Law Revision Counsel. 28 U.S. Code 2243 – Issuance of Writ; Return; Hearing; Decision

Who Counts as Being in Custody

The “in custody” requirement reaches further than a prison cell. Someone sitting in a state or federal prison obviously qualifies. So does a person on parole, because parole comes with reporting duties, travel restrictions, and the constant possibility of being returned to prison. The Supreme Court settled that point in Jones v. Cunningham.3Justia U.S. Supreme Court. Jones v. Cunningham, 371 U.S. 236 (1963) People on probation, individuals in immigration detention, and those confined to mental health facilities can also petition for habeas relief.

When the Government Can Suspend the Writ

The Suspension Clause in Article I permits suspension only “in Cases of Rebellion or Invasion” when the public safety requires it. Because the clause sits in the article that governs Congress, it has been read to mean that only Congress, not the President acting alone, can suspend the writ. Suspension has happened only a handful of times in American history, and each instance has been contested.

Congress has also tried at times to strip courts of jurisdiction to hear certain habeas cases. The Military Commissions Act of 2006 removed federal court jurisdiction over petitions from foreign nationals held as enemy combatants outside the United States.4Congress.gov. S.3930 – Military Commissions Act of 2006 In Boumediene v. Bush, the Supreme Court struck that provision down, holding that Guantánamo detainees held the constitutional privilege of habeas corpus and that Congress could not eliminate it without providing an adequate substitute.5Library of Congress. Boumediene v. Bush, 553 U.S. 723 (2008)

Who Can File and Under Which Statute

Federal habeas law splits into three main pathways depending on who you are and what you are challenging.

Federal prisoners, immigration detainees, and others held under federal authority generally file under 28 U.S.C. § 2241.6Office of the Law Revision Counsel. 28 USC 2241 – Power to Grant Writ State prisoners challenging a conviction or sentence file under 28 U.S.C. § 2254, which carries the strictest procedural hurdles.7Office of the Law Revision Counsel. 28 USC 2254 – State Custody; Remedies in Federal Courts Federal prisoners attacking their own sentence use 28 U.S.C. § 2255, which technically operates as a motion filed in the sentencing court rather than a traditional petition.8United States Courts. Rules Governing Section 2254 and Section 2255 Proceedings

Exhausting State Remedies First

State prisoners face a prerequisite that ends many petitions before they start: you must exhaust every available state court remedy before a federal court will consider your claim. That means completing direct appeals and state post-conviction proceedings. If you still have any state avenue open for the argument you want to raise, the federal court will turn you away.7Office of the Law Revision Counsel. 28 USC 2254 – State Custody; Remedies in Federal Courts

Narrow exceptions exist. A court can excuse exhaustion when no state process is available or when the available process is so ineffective it cannot protect the petitioner’s rights. The state may also expressly waive the requirement through counsel, though that rarely happens.

The One-Year Deadline

The Antiterrorism and Effective Death Penalty Act of 1996, known as AEDPA, imposes a one-year statute of limitations on habeas petitions. For most petitioners, the clock starts the day the conviction becomes final, meaning the day the last direct appeal is decided or the deadline to seek further review expires. The one-year period pauses while a properly filed state post-conviction petition is pending, but otherwise the clock is unforgiving.9Office of the Law Revision Counsel. 28 USC 2244 – Finality of Determination

Alternative start dates apply in limited situations: when a government-created obstacle prevented filing, when the Supreme Court recognizes a new constitutional right and makes it retroactive, or when new facts come to light that reasonable effort could not have uncovered earlier. Equitable tolling is possible but rare. The Supreme Court has held that a petitioner seeking it must show both diligent pursuit of their rights and extraordinary circumstances outside their control that prevented timely filing.10Legal Information Institute. Holland v. Florida Missing the deadline is where most habeas claims die.

How Federal Courts Review State Convictions

This is where habeas surprises people. A federal court reviewing a state prisoner’s petition does not simply decide whether the state court got the law right. Under AEDPA, the federal court can grant relief only if the state court’s decision was “contrary to, or involved an unreasonable application of, clearly established Federal law, as determined by the Supreme Court,” or was based on an “unreasonable determination of the facts.”7Office of the Law Revision Counsel. 28 USC 2254 – State Custody; Remedies in Federal Courts

The practical consequence is large. A state court can misapply the law, and as long as its mistake is not objectively unreasonable, the federal court has to leave the conviction alone. Wrong is not enough. The state court has to be unreasonably wrong. This standard is why most federal habeas petitions from state prisoners fail even when the constitutional claim has real substance.

Filing the Petition

State prisoners use the official § 2254 petition form, which the federal courts publish on their website.11United States Courts. Petition for Writ of Habeas Corpus Under 28 U.S.C. 2254 Federal prisoners challenging a sentence use the § 2255 motion form. Federal detainees in other situations file under § 2241.

Whichever form applies, the petition needs case numbers, the court and date of conviction, the sentence imposed, a full history of prior appeals and post-conviction filings, and a clear statement of each constitutional violation being claimed. Common grounds include ineffective assistance of counsel, due process violations, prosecutorial misconduct, and unlawful searches. Vague or incomplete petitions are routinely dismissed.

The filing fee is $5.12Office of the Law Revision Counsel. 28 USC 1914 – District Court; Filing and Miscellaneous Fees Petitioners who cannot afford it can apply to proceed in forma pauperis and have the fee waived.

Once the court receives the petition, a judge screens it to decide whether it raises a viable claim on its face. If it clears that step, the court orders the government to respond and explain why the detention is lawful. The court may hold an evidentiary hearing if factual disputes need resolving, though hearings are less common than most petitioners hope. The full process typically runs for many months.

Possible Outcomes

When a court reaches the merits, three results are possible:

  • Denial. The court finds no constitutional violation, or concludes the state court’s handling was not unreasonable under AEDPA. The conviction and sentence stand. This is by far the most common outcome.
  • Unconditional grant. The court finds the detention unlawful and orders immediate release. This is rare and usually involves jurisdictional defects or sentences that clearly exceed legal limits.
  • Conditional grant. The court finds a constitutional error but gives the government a window, often around 180 days, to fix it through a new trial or resentencing. If the government misses the deadline, the petitioner must be released.

The conditional grant is the most common form of successful relief. It lets the state correct the specific error rather than releasing a convicted person outright.

Second Petitions and the Actual Innocence Exception

Filing a second habeas petition after a denial is difficult by design. Before a successive petition can even be filed in district court, a three-judge panel of the court of appeals must authorize it. The panel decides within 30 days, and its decision cannot be appealed.9Office of the Law Revision Counsel. 28 USC 2244 – Finality of Determination

The panel will authorize a successive petition in only two situations: the Supreme Court has recognized a new rule of constitutional law and made it retroactive to cases on collateral review, or newly discovered evidence, undiscoverable earlier through reasonable diligence, would be enough to establish by clear and convincing evidence that no reasonable factfinder would have convicted the petitioner. Any claim already raised in a prior petition must be dismissed.

One narrow path cuts through almost every procedural barrier: a credible showing of actual innocence. In Schlup v. Delo, the Supreme Court held that a petitioner who can show it is more likely than not that no reasonable juror would have convicted them in light of new evidence can bypass procedural defaults, including missed deadlines and unexhausted claims.13Justia U.S. Supreme Court. Schlup v. Delo, 513 U.S. 298 (1995) Actual innocence is not itself a standalone claim; it is a gateway that lets the court hear the underlying constitutional claims on their merits. The evidence required is concrete: DNA results, recanted testimony, or proof physically unavailable at trial. General assertions of innocence do not qualify.

Appealing a Denial

A denied habeas petitioner cannot appeal the way an ordinary civil litigant would. AEDPA requires a certificate of appealability, which a district or circuit judge issues only if the petitioner has made “a substantial showing of the denial of a constitutional right.”14Office of the Law Revision Counsel. 28 U.S. Code 2253 – Appeal Without one, the appeal cannot proceed.

If the district judge refuses the certificate, the petitioner can ask a circuit judge. Filing a notice of appeal counts as such a request if no separate one has been made. The government, by contrast, needs no certificate to appeal a habeas grant. That asymmetry runs through the whole modern system, which weighs finality of criminal convictions heavily against the petitioner at every stage.