165. Return to the writ.

In compliance with the mandatory directions contained in the writ of habeas corpus, the person to whom it is directed is under a legal obligation to produce the body of the person alleged to be unlawfully detained before the court on the day specified1 and to make a formal return to the writ2. The return to a writ of habeas corpus for release must be indorsed on or annexed to the writ and state all the causes of the detention of the detained person3. The court has power to examine and to inquire into the truth of the facts