No writ of habeas corpus can be disobeyed for defect of form, if it sufficiently appears therefrom in whose restraint the party imprisoned or restrained is, the officer or person detaining the party, and the court before whom the party is to be brought.
N.D.C.C. § 32-22-26