Penal Code § 1501
CHAPTER 1. Of the Writ of Habeas Corpus
If such party is held under illegal restraint or custody, he must be discharged; and if not, he must be restored to the care or custody of the person entitled thereto.
CHAPTER 1. Of the Writ of Habeas Corpus
If such party is held under illegal restraint or custody, he must be discharged; and if not, he must be restored to the care or custody of the person entitled thereto.