Habeas Corpus, in the Federal Court, is a petition that claims that you are being detained against your US constitutional rights. The procedure for filing a petition for a writ of habeas corpus is spelled out in the CPLR Article 70.A Writ of Habeas Corpus is a civil proceeding that is available in both State and Federal Court to challenge the legality of imprisonment. I am trying to file a writ of habeas corpus for my brother that is incarcerated in wayne county jail. I need help filling it out. Before issuing a writ of habeas corpus the judge shall notify the Wayne. A writ of habeas corpus is used to bring a prisoner before the court to determine if the person's imprisonment or detention is lawful. Attached are the forms you will need to file a petition for a writ of habeas corpus. In the US system, federal courts can use the writ of habeas corpus to determine if a state's detention of a prisoner is valid. Case file: the court file containing papers submitted in a case.