The sole question presented by this appeal is, whether the complaint, in an action against the city of ' Buffalo, should contain an allegation of the previous presentation of the claim declared on to its common council, and that forty days had expired since such presentation. The clause of the city charter requiring such a proceeding reads as follows : “bic action to recover or enforce any claim against the city shall be brought until the expiration of forty days after the claim shall have been presented to the common council in the manner and form provided.” (§ 7, tit. 3, chap. 519, Laws of 1870.)
The inquiry is whether this provision was intended to operate as a condition precedent to the commencement of an action, or simply to furnish a defense to the city in case of an omission to make such demand. .Ye think the plain language of the statute excludes any doubt on the subject.
It absolutely forbids the prosecution of any .action until the proper demand has been made. It attaches to all actions whatsoever, and by force of the statute becomes an essential part of the cause of action, to be alleged and proved as any other material fact. It does not purport to give the city a defense dependent upon an election to use it, but expressly forbids the institution of any suit until the preliminary requirements have been complied with. The plain intent of the requirement was *311 to protect the city from the costs, trouble and annoyance of legal proceedings, unless, after a full and fair opportunity to investigate and pay the claim, if deemed best, they declined to do so.
It is not in such a ease necessary that the thing required should constitute one of the elements of a common-law action, for if the legislature have made even a step in their remedy a condition of its prosecution, it is essential not only that it should be taken, but that it should be affirmatively alleged and proved by the plaintiff. It is competent foi them to attach a condition to the maintenance of a common-law action as well as one created by statute, and, when they have done so, its averment and proof cannot safely be omitted. The court, in
Nagel
v.
City of Buffalo
(
The general rules of pleading applying to such cases are elementary and hardly need citations to illustrate them.
It was said by Judge Dentó in
Howland
v.
Edmonds
(
The dicta in
Minick
v.
Troy
(
We are also referred to a number of decisions in the courts of our sistpr States upon statutes quite similar to that of the Buffalo charter, in Avhich the want of an allegation of presentation and demand has been held demurrable.
(Jones
v.
Minne
apolis,
The judgment appealed from should be affirmed.
Judgment affirmed.
