If it appears on the return that the prisoner is in custody by virtue of civil process of any court legally constituted, or issued by an officer in the course of judicial proceedings before him, authorized by law, such prisoner can only be discharged in one of the following cases:
A. when the jurisdiction of such court or officer has been exceeded either as to matter, place, sum or person;
B. where, though the original imprisonment was lawful, yet by some act, omission or event which has taken place afterward, the party is entitled to be discharged;
C. where the process is defective in some matter of substance required by law rendering such process void;
D. where the process, though in proper form, has been issued in a case not allowed by law;
E. where the person having the custody of the prisoner under such process is not the person empowered by law to detain him; or
F. where the process is not authorized by any judgment, order or decree of any court, nor by any provision of law.
History: Laws 1884, ch. 1, § 17; C.L. 1884, § 2028; C.L. 1897, § 2797; Code 1915, § 2605; C.S. 1929, § 63-117; 1941 Comp., § 25-1117; 1953 Comp., § 22-11-17.
No constitutional right invaded if trial's total result was fair. — In determining whether the deprivation of constitutional rights amounts to a denial of due process the inquiry on habeas corpus is directed to a review of the entire proceedings, and if the total result was the granting to accused of a fair and deliberate trial, then no constitutional right has been invaded, and the proceedings will not be disturbed. Orosco v. Cox, 1965-NMSC-098, 75 N.M. 431, 405 P.2d 668.
In habeas corpus proceeding supreme court may receive evidence outside record to establish the absence or loss of jurisdiction through denial of any of the rights guaranteed to a prisoner at the bar by either the United States or New Mexico constitutions. Orosco v. Cox, 1965-NMSC-098, 75 N.M. 431, 405 P.2d 668.
Am. Jur. 2d, A.L.R. and C.J.S. references. — 39 Am. Jur. 2d Habeas Corpus § 90.
Habeas corpus to test constitutionality of ordinance under which petitioner is held, 32 A.L.R. 1054.
Habeas corpus in case of sentence which is excessive because imposing both fine and imprisonment, 49 A.L.R. 494.
Power to grant writ of habeas corpus pending appeal from conviction, 52 A.L.R. 876.
Habeas corpus as remedy for delay in bringing accused to trial or to retrial after reversal, 58 A.L.R. 1510.
Illegal or erroneous sentence as ground for habeas corpus, 76 A.L.R. 468.
Habeas corpus as remedy where one is convicted, upon plea of guilty or after trial, of offense other than one charged in indictment or information, 154 A.L.R. 1135.
Mistreatment of prisoner lawfully in custody as ground for habeas corpus, 155 A.L.R. 145.
39 C.J.S. Habeas Corpus § 110.
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.]