§ 7001. Application of article; special proceeding. Except as otherwise prescribed by statute, the provisions of this article are applicable to common law or statutory writs of habeas corpus and common law writs of certiorari to inquire into detention. A proceeding under this article is a special proceeding.
§ 7002. Petition. (a) By whom made. A person illegally imprisoned or otherwise restrained in his liberty within the state, or one acting on his behalf or a party in a child abuse proceeding subsequent to an order of the family court, may petition without notice for a writ of habeas corpus to inquire into […]
§ 7003. When the writ shall be issued. (a) Generally. The court to whom the petition is made shall issue the writ without delay on any day, or, where the petitioner does not demand production of the person detained or it is clear that there is no disputable issue of fact, order the respondent to […]
§ 7004. Content of writ. (a) For whom issued. The writ shall be issued on behalf of the state, and where issued upon the petition of a private person, it shall show that it was issued upon his relation. (b) To whom directed. The writ shall be directed to, and the respondent shall be, the […]
§ 7005. Service of the writ. A writ of habeas corpus may be served on any day. Service shall be made by delivering the writ and a copy of the petition to the person to whom it is directed. If he cannot with due diligence be found, the writ may be served by leaving it […]
§ 7006. Obedience to the writ. (a) Generally; defects in form. A person upon whom the writ or a copy thereof is served, whether it is directed to him or not, shall make a return to it and, if required by it, produce the body of the person detained at the time and place specified, […]
§ 7007. Warrant preceding or accompanying writ. A court authorized to issue a writ of habeas corpus, upon satisfactory proof that a person is wrongfully detained and will be removed from the state or suffer irreparable injury before he can be relieved by habeas corpus, shall issue a warrant of attachment directed to an appropriate […]
§ 7008. Return. (a) When filed and served. The return shall consist of an affidavit to be served in the same manner as an answer in a special proceeding and filed at the time and place specified in the writ, or, where the writ is returnable forthwith, within twenty-four hours after its service. (b) Content. […]
§ 7009. Hearing. (a) Notice before hearing. Where the detention is by virtue of a mandate, the court shall not adjudicate the issues in the proceeding until written notice of the time and place of the hearing has been served either personally eight days prior to the hearing, or in any other manner or time […]
§ 7010. Determination of proceeding. (a) Discharge. If the person is illegally detained a final judgment shall be directed discharging him forthwith. No person detained shall be discharged for a defect in the form of the commitment, or because the person detaining him is not entitled to do so if another person is so entitled. […]
§ 7011. Appeal. An appeal may be taken from a judgment refusing to grant a writ of habeas corpus or refusing an order to show cause issued under subdivision (a) of section 7003, or from a judgment made upon the return of such a writ or order to show cause. A person to whom notice […]
§ 7012. Redetention after discharge. A person discharged upon the return of a writ of habeas corpus shall not be detained for the same cause, except by virtue of a subsequent lawful mandate.