In all actions where there are several defendants not united in interest, and making separate defenses by separate answers, and the plaintiff fails to recover judgment against all, the court may award costs to such defendants as recover judgments in their favor, or either of them.
RCW 4.84.070