The sheriff or person who shall be required to bring up a person on habeas corpus, if the person be held by virtue of any legal process directed to such person as an officer, shall be entitled to the same fees and allowances as are allowed to sheriffs for removing prisoners in other cases.
NMS § 44-1-37