If a peremptory mandate has been issued and directed to an inferior tribunal, corporation, board, or person, and it appears to the court that a member of the tribunal, corporation, or board, or the person upon whom the writ has been personally served, has, without just excuse, refused or neglected to obey the writ, the court may, upon motion, impose a fine not exceeding one thousand dollars. In case of persistence in a refusal of obedience, the court may order the party to be imprisoned until the writ is obeyed, and may make any orders necessary and proper for the complete enforcement of the writ.
Ca. Civ. Proc. Code § 1097