Though subject to different rules, incarcerated people in both state or federal custody may petition for a federal writ of habeas corpus. What Is Habeas Corpus?Federal Section 1983 Forms Packet. 3. AEDPA provides a one-year statute of limitations for state prisoners to file a petition for writ of habeas corpus in federal court.