No writ of habeas corpus shall be disobeyed for defect in form, if it sufficiently appears therefrom in whose custody or under whose restraint the party imprisoned or restrained is, the officer or person detaining him, and the court before whom he is to be brought.