CCP 4659     

Art. 4659.  Costs

When money has been deposited into the registry of the court by the plaintiff, neither he nor any other party shall be required to pay any of the costs of the proceeding as they accrue, but these shall be deducted from the money on deposit.  The court may award the successful claimant judgment for the costs of the proceeding which have been deducted from the money on deposit, or any portion thereof, against any other claimant who contested his right thereto, as in its judgment may be considered equitable.

In all other instances, the court may render judgment for costs as it considers equitable.