(a) Costs or any portion of claimed costs shall be as determined by the court in its discretion in a case other than a limited civil case in accordance with Section 1034 where the prevailing party recovers a judgment that could have been rendered in a limited civil case.
(b) When a prevailing plaintiff in a limited civil case recovers less than the amount prescribed by law as the maximum limitation upon the jurisdiction of the small claims court, the following shall apply:
(1) When the party could have brought the action in the small claims division but did not do so, the court may, in its discretion, allow or deny costs to the prevailing party, or may allow costs in part in any amount as it deems proper.
(2) When the party could not have brought the action in the small claims court, costs and necessary disbursements shall be limited to the actual cost of the filing fee, the actual cost of service of process, and, when otherwise specifically allowed by law, reasonable attorneys’ fees. However, those costs shall only be awarded to the plaintiff if the court is satisfied that prior to the commencement of the action, the plaintiff informed the defendant in writing of the intended legal action against the defendant and that legal action could result in a judgment against the defendant that would include the costs and necessary disbursements allowed by this paragraph.