When the state or a borough, city, or other public agency or entity or an officer thereof in an official capacity is a party, costs shall be awarded against it on the same basis as against any other natural person or party. However, when the action is brought upon the information of a natural person, that person shall be liable for costs awarded against the state. The costs may not be recovered from the state until after execution has issued for the costs against that person and has been returned unsatisfied in whole or in part.