Penal Code § 363
CHAPTER 12. Other Injuries to Persons
Every person who, either solely or as member of a Court, knowingly and unlawfully recommits, imprisons, or restrains of his liberty, for the same cause, any person who has been discharged upon a writ of habeas corpus, is guilty of a misdemeanor.