To formally serve a document in a habeas corpus case, you do the following: ♢ Make a copy of the document you are sending to the court. What Occurs in a Misdemeanor Case?A person is only able to file a petition of habeas corpus if he or she is being detained or because one's freedom is restricted as the result of a conviction. Civil Division of the San Bernardino District, 247 West 3rd St, San Bernardino, CA 92415-0210 (located in the San Bernardino Justice Center). State Habeas Corpus Packet ; FormID: 1 ; Form Category: Pro Se Packets ; Form: PDF icon State Habeas Corpus Packet. A Writ of Habeas Corpus is used to appeal a court decision or to challenge conditions of probation or parole. A writ of habeas corpus petition is a tool that individuals convicted of criminal offenses in California can use to challenge their imprisonment. Petition for writ of habeas corpus filed in the San Bernardino County Superior Court. Division One – San Diego County. Division One – Imperial County.