If no legal cause is shown for such imprisonment or restraint, or for the continuation thereof, such officer shall discharge such party from the custody or restraint under which he is held.
History: Laws 1884, ch. 1, § 15; C.L. 1884, § 2026; C.L. 1897, § 2795; Code 1915, § 2603; C.S. 1929, § 63-115; 1941 Comp., § 25-1115; 1953 Comp., § 22-11-15.
Function of writ of habeas corpus is not to review record for errors of the trial court, and where the petition states no facts showing petitioner is unlawfully deprived of his liberty, it will be denied. Smith v. People, 1962-NMSC-152, 71 N.M. 112, 376 P.2d 54.
No appeal lies from decision of district court in habeas corpus proceedings. In re Forest, 1941-NMSC-019, 45 N.M. 204, 113 P.2d 582.
Inability to pay support money negates sentence on habeas corpus. — Present ability to pay arrears of monthly sums allowed for support of children is essential to the validity of a contempt sentence to continue until payment, and where record shows that such sentence was imposed in absence of ability to pay, the sentence must be held for naught on habeas corpus. Ex parte Sedillo, 1929-NMSC-038, 34 N.M. 98, 278 P. 202.
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 § 156.
Right of state or public officer to appeal from an order in habeas corpus releasing one from custody, 10 A.L.R. 385, 30 A.L.R. 1322.
Arresting one who has been discharged on habeas corpus, 62 A.L.R. 462.
Right to appeal from conviction as affected by discharge on habeas corpus, 74 A.L.R. 641.
Discharge on habeas corpus after conviction as affecting claim or plea of former jeopardy, 97 A.L.R. 160.
39A C.J.S. Habeas Corpus § 228.
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.]