A writ of habeas corpus is used to bring a prisoner or other detainee (e.g. It is only used to challenge errors that would make your detention unlawful.How Long Do You Have to File a Writ of Habeas Corpus? 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. On November 21, 2008, Defendant filed the instant petition, which he entitled a "Petition Seeking to Invoke This Court's All. The writ of habeas corpus is a legal order requiring a person holding another person to produce that individual before a court or judge. In many countries, authorities may incarcerate someone for months or years without charging them. A person held in a secure facility under this part may file a petition for habeas corpus in the circuit court for the county in which the facility is located. 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. From federal court to represent defendants during federal habeas-corpus proceedings); Austin v.