Forms Find a national federal court form that can be used in all federal courts. If you want to challenge your immigration detention, you may use the form Petition for a Writ of Habeas Corpus under 28 U.S.C. § 2241 (For Immigration Matters).A 2254 petition must be filed in the federal district court that has jurisdiction over the county where the conviction occurred. It provides an expeditious remedy for correcting erroneous sentences without resort to habeas corpus. File Your Motion While in Custody. Before you can file a motion under §2255, you must be in custody under federal law. The Legislature is comprised of two houses, the Senate and the Assembly, and is responsible for enacting laws and establishing public policy for California. This information is submitted to the California Legislature and used in numerous judicial branch reports. San Bernardino County Forms .