Who May Use This Form. An Arizona Attorney may file a writ of habeas corpus early in a defendant's case if there is a concern that they are being held without bond.Federal habeas corpus is a procedure under which a federal court may review the legality of an individual's incarceration. A Writ of Habeas Corpus is a motion which is filed most frequently to ensure that a Defendant's imprisonment or detention is not illegal. Secondly, you must present any and all claims to the State Court before bring them to a Federal Court (the exhaustion rule). It is most often the stage of the criminal appellate process that follows direct appeal and any available state collateral review. The Court acknowledged that Arizona law is not clear when it comes to habeas corpus procedures in a child custody case. A habeas petition may only be filed on behalf of a person who is "in custody" pursuant to the judgment of a State Court.