Section 44-1-5 - Petition for writ; allegations; exhibits.
44-1-5. [Petition for writ; allegations; exhibits.]
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.