When the writ shall not be allowed.
Section 528
SEC. 528. When the writ shall not be allowed. — If it appears that the person alleged to be restrained of his liberty is in custody of an officer under process issued by a court or magistrate, or by virtue of a judgment or order of a court of record, and that the court or magistrate had jurisdiction to issue the process, render the judgment, or make the order, the writ shall not be allowed; or if the jurisdiction appear after the writ is allowed, the person shall not be discharged by reason of any informality or defect in the process, judgment, or order.