Please complete the fields below to schedule a free consultation with a skilled attorney. A Habeas Corpus Writ is filed with a federal court once the defendant's state appellate remedies have been exhausted.A Writ of Habeas Corpus is a civil proceeding that is available in both State and Federal Court to challenge the legality of imprisonment. This petition, called a writ of Habeas Corpus, is filed in Federal Court (U. Petition for Relief From a Conviction or Sentence By a Person in State Custody (Petition Under 28 U. S. C. § 2254 for a Writ of Habeas Corpus). The "Great Writ" of habeas corpus is a fundamental right in the Constitution that protects against unlawful and indefinite imprisonment. The habeas corpus remedy offers a particularly effective means for obtaining a prompt custody determination…. To get a writ of habeas corpus, you must file a petition for a civil (not criminal) proceeding in either state or federal court. A prerogative writ used to challenge the validity of a person's detention, either in official custody (e.g. The right to petition for a writ of habeas corpus has nonetheless long been celebrated as the most efficient safeguard of the liberty of the subject.