The mayor shall be recognized as the official head of the city by the courts for the purpose of service of civil process upon the city and instituting any action or proceeding at law or equity for and in behalf of the city, and appearing in any manner before the courts on behalf of the city; he shall be recognized by the governor and other state officials as the chief and official head of the city.