When action dismissed for want of jurisdiction.
Section 488
SEC. 488. When action dismissed for want of jurisdiction. — If an action is dismissed for want of jurisdiction, courts nevertheless shall have power to render judgment for costs, as justice may require.