The question presented on this appeal arises upon a motion made by the defendant for judgment upon matters set up as counterclaims contained in the defendant’s answer, and which as counterclaims were not replied to. It was a special motion made under the provisions of *165section 515 of the Code of Civil Procedure, by which it is enacted that “ if the plaintiff fails to reply or demur to the counterclaim, the defendant may apply, upon notice; for judgment thereupon, and if the case requires it, a reference may be ordered or a writ of inquiry may be issued as prescribed in chapter eleventh of tjais act, where the plaintiff applies for judgment.”
The defendant’s application was denied, on the ground, apparently, that all that he sought was a dismissal of the plaintiff’s complaint. The action is upon a promissory note for $1,000, made by j;he defendant, payable to H. N. Yedder. The complaint alleges the delivery of this note to Yedder and that prior to the commencement of the action it was assigned and transferred to the plaintiff. Although not appearing by the complaint in so many words, it is conceded that the note was assigned and transferred to the plaintiff after its maturity. Such being the fact, it was open to the defendant to set up by way of counterclaim indebtedness of the assignor of the note to him, the defendant, to an extent sufficient to extinguish the claim arising on the cause of action set out in the complaint. It is provided by subdivision 2 of section 502 of the Code of Civil Procedure that “ if the action is upon a negotiable promissory note or bill of exchange, which has been assigned to the plaintiff after it became due, a demand, existing against a person who assigned or transferred it after it became due, must be allowed, as a counterclaim to the amount of the plaintiff’s demand, if it might have been so allowed against the assignor, while the note or bill belonged to him.” Under this permissive provision of the Code the defendant set up several counterclaims, each of which on its face is good as against the assignor of the note at the time such assignor held it. It is idle to speculate as to the status of these counterclaims, for we are not required to go beyond the terms of subdivision 2 of section 502 to ascertain that, It is specifically required that the demand existing against the assignor be allowed as a cownter claim.
A demand that may be set up under that section acquires ex vi termvni the status of a counterclaim. It is to be pleaded as such; could not be allowed unless it were so pleaded, and it necessarily follows that if it is properly pleaded as a counterclaim, it must be replied to or the defendant may take such proper judgment as he *166may be entitled to by reason of a failure to reply. There is no distinction between a counterclaim under this section of the Code and any other counterclaim. There is but one rule of pleading applying to counterclaims.
If this is the correct view, it follows that thé defendant was entitled to judgment on the counterclaims, not to an absolute dismissal of the complaint, but to a proper judgmént, one which would establish the rights of the parties under the pleadings. The learned judge below denied the motion on the ground that the defendant was not entitled to an absolute dismissal of the complaint. He was right in so holding, but the notice of motion served by the defendant was sufficient to entitle him to a proper judgment on the pleadings. The motion was made “for judgment dismissing the plaintiffs complaint, with costs, upon the counterclaims containedin the defendant’s answer herein, or for such other and further relief as to the court may seem proper.”, That notice was broad enough to afford the defendant any affirmative relief to which he was entitled. Under the terms of this notice of motion the defendant should have been allowed to go on and take that proper judgment. He was not entitled to an absolute, dismissal of the complaint because that would have resulted in a judgment on the merits, destroying the defendant’s liability on the promissory note and yet leaving all the coun- ' terclaims open to enforcement against the plaintiff’s assignor.
We think, therefore, the order should be reversed, with ten dol- ■ lars cost and disbursements of appeal, and, inasmuch as a proper judgment must- be framed, the motion should be remitted to the Special Term for further consideration.
Van jBbttnt, Pj J., O’Bkien, McLaughlin and Laughlin, JJ., concurred.
■ Order reversed, with ten dollars costs and disbursements of appeal, and motion remitted to Special Term for further consideration.