§ 5338. When judgment for plaintiff is given
When it appears upon the default of the defendant, or upon trial in the action of replevin, that the goods were unlawfully taken or attached or unlawfully detained by the defendant, the plaintiff shall have judgment for his or her damages caused thereby, and his or her costs.