A federal writ of habeas corpus is a legal remedy available to state and federal prisoners who object to their detention or imprisonment. If you want information about federal habeas corpus, send a request to Prison Law Office, General Delivery, San.A habeas court petition can be filed in state court or in federal court if all state options have been exhausted. Any person "in custody" can file a state habeas corpus petition. State Habeas Corpus Packet. A Writ of Habeas Corpus is used to appeal a court decision or to challenge conditions of probation or parole. The inmate may file a petition for writ of habeas corpus. Any person "in custody" can file a state habeas corpus petition. Paluzzi sought relief in the California courts.