The condition of the statutes regulating replevin proceedings, both in district courts and courts of record, is somewhat anomalous. By section 17, chapter 484 of the Laws of 1862, sections 206 to 217, inclusive, of the Code of Procedure were made to apply to the district courts in the city of Hew York; these sections of the Code of Procedure regulating the course of replevin proceedings in courts of record. By the repealing act of 1877, chapter 417, passed at the time of the adoption of the new Code of Procedure, the above sections of the old Code are expressly excluded from the repealing act, and we do not. find that by the repealing act of 1880, chapter 245, they have been affected.
Although these sections remained in full force and effect, apparently, the new Code of Civil Procedure has adopted a complete system of procedure in actions to recover possession of personal property, and it is provided what shall be the *450course of such procedure in the district courts. By section 3210, articles 3, 4 and 5 of title 2 of chapter 19 of this act was made to apply to actions brought in a district court of the city •of blew York. Article 5 of said title provides what the .requisition shall be, and prescribes the form of the affidavit and undertaking, which shall be in all respects similar to the affidavit and undertaking required to be delivered to the sheriff •as prescribed by the Code, except that the sureties upon the undertaking must be approved by the justice. The sureties In the case at 'bar, having been approved by the marshal, no undertaking was given and approved as required by the Code, •so as to confer any jurisdiction upon the marshal to execute the proceedings.
The justice erred, therefore, in not dismissing the proceedings when this objection was taken.
It is urged upon the part of the plaintiff and respondent that even if the proceedings in replevin had been dismissed, a summons having been served, the action might still have proceeded. It is sufficient answer to this objection to say that the only way in which any error in the ruling of the justice as to the regularity of any preliminary proceedings can be reviewed, is upon an appeal from the judgment, and that such exceptions form necessarily a part of the return.
It might be further said that the judgment pronounced by the justice was predicated upon these proceedings. If those proceedings did not exist, a judgment wv rem could not have been pronounced, as was pronounced by the justice.
• The order of the justice in sustaining the proceedings therein, pervades the judgment itself, which was rendered upon the trial of the issues raised by the pleadings.
The ruling of the justice having been erroneous in regard to these proceedings, the judgment must be reversed.