Habeas corpus on account of detention of spouse or child. Petition for writ — Contents. Petition for writ — Verification; to whom presented. When writ granted. Form of writ. Return day for writ. Service of writ. When warrant for arrest of person detained to be issued along with writ. Respondent’s return to writ — When and where made. Respondent’s return to writ — Verification; production of person detained. Respondent’s return to writ — Statement of transfer of custody; procedure when transfer made to avoid writ. Production of legal process. Hearing of issue. To whom notice of hearing given. When person not to be discharged. Discharge for defect in affidavit, warrant, or commitment. Discharge after arrest for offense committed in another state. Powers of court in cases not covered by Code Sections 9-14-16 through 9-14-18. Recordation of proceedings by clerk of court; fees.