N.M. Stat. § 44-1-1
[Who may obtain writ.]
Text of § 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.
Cite this section
N.M. Stat. § 44-1-1
https://lawconsensus.com/codes/new-mexico/chapter-44/44-1-1/
LawCensus reproduces the text of the law for reference. It may not show the most recent changes. Check the official source before you rely on it: official text. This is general information, not legal advice.