13-4131. Discharge of prisoner
A. If no legal cause is shown for the imprisonment or restraint, or for continuation thereof, the party shall be discharged from custody or restraint.
B. If the time during which the party may be legally detained in custody has not expired and he is detained in custody by virtue of process issued by any court, judge or agency of the United States, in an action where such court, judge or agency has exclusive jurisdiction, or by virtue of the final judgment or decree of any court of competent jurisdiction, or of any process issued upon such judgment or decree, the person shall not be discharged.