California Code
ARTICLE 2 - Writ of Possession
Section 512.120.

512.120. If the plaintiff fails to recover judgment in the action, he shall redeliver the property to the defendant and be liable for all damages sustained by the defendant which are proximately caused by operation of the temporary restraining order and preliminary injunction, if any, the levy of the writ of possession, and the loss of possession of the property pursuant to levy of the writ of possession or in compliance with an order issued under Section 512.070.

(Added by Stats. 1973, Ch. 526.)