[Who may obtain writ.]

NMSA 1978, § 44-1-1 — under Article 1.

NMSA 1978, § 44-1-1

Every person imprisoned or otherwise restrained of his liberty, except in the cases in the following section specified, may prosecute a writ of habeas corpus, according to the provisions of this chapter, to obtain relief from such imprisonment or restraint, if it proves to be unlawful. History: Laws 1884, ch. 1, § 1; C.L. 1884, § 2012; C.L. 1897, § 2781; Code 1915, § 2589; C.S. 1929, § 63-101; 1941 Comp., § 25-1101; 1953 Comp., § 22-11-1.