To file a habeas action, send the court the following items: â–« Your original, completed petition form. There is an official form (Judicial Council Form HC-001) for filing a state petition for writ of habeas corpus.Prison inmates can file a habeas corpus petition with the California Superior Court. Filing the Petition.