The petition shall state in substance:
A. that the person in whose behalf the writ is applied for is imprisoned or restrained of his liberty, the officer or person by whom he is so confined or restrained and the place where, naming both parties, if their names are known, or describing them if they are not;
B. that such person is not committed or detained by virtue of any process, judgment, decree or execution, specified in Section 44-1-2 NMSA 1978;
C. the cause or pretense of such confinement or restraint, according to the knowledge or belief of the party verifying the petition;
D. if the confinement or restraint is by virtue of any warrant, or order, or process, a copy thereof shall be annexed, or it shall be averred that by reason of such prisoner being removed or concealed before application, a demand of such copy could not be made, or that such demand was made, and the legal fees therefor tendered to the officer or person having such prisoner in his custody, and that such copy was refused;
E. if the imprisonment is alleged to be illegal, the petition shall state in what the illegality consists.
History: Laws 1884, ch. 1, § 5; C.L. 1884, § 2016; C.L. 1897, § 2785; Code 1915, § 2593; C.S. 1929, § 63-105; 1941 Comp., § 25-1105; 1953 Comp., § 22-11-5.
Cross references. — For signature and verification of petition, see 44-1-3 NMSA 1978.
Post-conviction proceedings must be invoked before habeas corpus may be sought. In re Martinez, 1982-NMSC-115, 99 N.M. 198, 656 P.2d 861.
Juvenile court justice is not proper party in habeas corpus proceeding; only persons having physical custody of petitioner and able to produce him in court may properly be named as respondent in such proceeding. Peyton v. Nord, 1968-NMSC-027, 78 N.M. 717, 437 P.2d 716.
Law reviews. — For article, "Habeas Corpus in New Mexico," see 11 N.M.L. Rev. 291 (1981).
Am. Jur. 2d, A.L.R. and C.J.S. references. — 39 Am. Jur. 2d Habeas Corpus §§ 121 to 125.
Propriety of federal court's considering state prisoner's petition under 28 USCS § 2254 where prisoner has exhausted state remedies as to some, but not all, claims in petition, 43 A.L.R. Fed. 631.
Abuse of writ as basis for dismissal of state prisoner's second or successive petition for federal habeas corpus, 60 A.L.R. Fed. 481.
39A C.J.S. Habeas Corpus §§ 168, 169.
Structure 2021 New Mexico Statutes
Chapter 44 - Miscellaneous Civil Law Matters
Section 44-1-1 - [Who may obtain writ.]
Section 44-1-2 - [Detention under judgment or execution; contempt.]
Section 44-1-3 - [Application for writ; to whom made; petition; signature; verification.]
Section 44-1-5 - [Petition for writ; allegations; exhibits.]
Section 44-1-6 - [Form of writ.]
Section 44-1-7 - [Defects of form; names of prisoner and custodian.]
Section 44-1-8 - [Wrongful refusal of writ; forfeiture.]
Section 44-1-9 - [Return; contents; exhibits; signature; verification.]
Section 44-1-10 - [Petitioner to be produced; exception.]
Section 44-1-11 - [Attachment for disobedience of writ; issuance; to whom directed; proceedings.]
Section 44-1-12 - [Attachment against sheriff; place of detention.]
Section 44-1-13 - [Precept for production of petitioner by officer executing attachment.]
Section 44-1-15 - [When petitioner will be discharged.]
Section 44-1-16 - [When petitioner will be remanded to custody.]
Section 44-1-17 - [Causes for discharge of petitioner in custody under civil process.]
Section 44-1-18 - [Legality or justice of judgment or execution.]
Section 44-1-19 - [Petitioner legally committed or guilty of offense; release on bail.]
Section 44-1-20 - [Decision in other cases.]
Section 44-1-21 - [Custody of petitioner pending decision.]
Section 44-1-22 - [Notice of hearing.]
Section 44-1-25 - [Pleading by petitioner after return; summary hearing.]
Section 44-1-26 - [Procedure when petitioner is sick or infirm.]
Section 44-1-27 - [Disobedience of order for discharge; attachment; damages recoverable.]
Section 44-1-29 - [Concealment or transfer of prisoner to avoid writ; forfeiture.]
Section 44-1-30 - [Detention officer refusing to furnish copies; forfeiture.]
Section 44-1-31 - [When writ returnable; seal.]
Section 44-1-32 - [Who may serve writ; tender of fees; bond for costs and restoration of prisoner.]
Section 44-1-33 - [Service by delivery to custodian or person to whom writ is directed.]
Section 44-1-34 - [Service by posting.]
Section 44-1-35 - [Time allowed for making return and producing prisoner.]
Section 44-1-36 - [Compelling attendance of prisoner for trial or as witness.]