{"code":"PEN","codeName":"Penal Code","section":"1501","citation":"Pen. Code, § 1501","status":"in-force","lawOn":"2026-09-28","headings":[{"name":"PART 2. OF CRIMINAL PROCEDURE [681. - 1620.]","url":"https://blackletter.si/penal-code/part-2"},{"name":"TITLE 12. OF SPECIAL PROCEEDINGS OF A CRIMINAL NATURE [1473. - 1564.]","url":"https://blackletter.si/penal-code/part-2/title-12"},{"name":"CHAPTER 1. Of the Writ of Habeas Corpus [1473. - 1509.1.]","url":"https://blackletter.si/penal-code/part-2/title-12/chapter-1"}],"history":"Enacted 1872.","effective":null,"html":"<p>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.</p>","text":"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.","otherVersions":[],"url":"https://blackletter.si/penal-code/of-the-writ-of-habeas-corpus-1501","source":"California Legislative Information bulk export (pubinfo)"}