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.
Cal. Penal Code § 1501
Of the Writ of Habeas Corpus
Enacted 1872.
Official source: California Legislative Information. Reproduced from public-domain California statutes; confirm against the official source for the current text. Not legal advice.