The Habeas Corpus Act provides that if the imprisoned party is detained in custody by virtue of the final judgment or decree of any competent court of civil or criminal jurisdiction, 'or of any execution issued on such judgment or decree, he shall be remanded to such custody.
If then the said judgment of the court of general sessions is a, final judgment of a competent court of criminal juris’diction the prisoner must be remanded.
That it is the final judgment of a court of criminal jurisdiction is not disputed. But it is urged that' the court was not competent to render the judgment in question for two reasons:
1. That the ofience to which the relator pleaded guilty amounts, to petit larceny only, the punishment for which cannot exceed six months imprisonment, and a fine of $100 j *496and, therefore, the court had no power to order an imprisonment for three years.
2. That the court had no power to direct any imprisonment in the penitentiary in this case.
First—Chapter 374 of the laws of 1862, enacts that a larceny committed by stealing, taking, and carrying away from the person'of another, may be punished as for grand larceny, although the value of the property taken shall be less than twenty-five dollars.
The punishment for grand larceny is imprisonment not exceeding five years.
The offence to which the relator pleaded guilty is the stealing and taking from the person of another property of less value than twenty-five dollars.
Under the act of 1862, the punishment for this offence may be the same as the punishment for grand larceny, which is imprisonment not exceeding five years.
The court, therefore, ordered no greater term of imprisonment than the law prescribes.
Second—That the court of general sessions had jurisdiction to indict, try, convict, and sentence for .the offense in question; that it has in some cases authority to order imprisonment in the penitentiary, and that it had jurisdiction over this particular offense, and the person of the offender, are matters that are not disputed. But it is claimed that as its authority to imprison in the penitentiary for the offense in question, extends only to persons between sixteen and twenty-one years of age, it has no power so to imprison any. others, and that consequently its judgment so imprisoning one not between these ages is not the judgment of a competent court.
This seems to me to be a non sequitur. If the court had no authority to order imprisonment m the penitentiary in any case, or if it appeared on the face of its record that the person so ordered to be imprisoned was not within the prescribed ages, then I am strongly inclined to the opinion that *497it might well be said that the court was not competent to render such judgment, and necessarily that the imprisonment was not under the judgment of a competent court. But it is unnecessary to pass on that question as it dues not arise in this case.
The general punishment prescribed for all classes of offenders convicted of the offense in question, is imprisonment in the state prison for a term not exceeding five years (2 R. S., 1st ed., p: 679).
In 1840 the legislature enacted that, “Whenever any person under the age of sixteen years, shall be convicted of any felony or other crime, the court instead of sentencing such person to imprisonment in the state prison or county jail may order that he be removed to and confined in the house of refuge, established by the society for the reformation of juvenile delinquents, in the city of Hew York, unless notice shall have been received from said society that there is not room in said house for the reception of further delinquents/’ (Laws of 1840, p. 73, chap. 100.)
In 18-56, the legislature enacted that, “Whenever any person under the age of twenty-one and above the age of sixteen, shall be convicted of an offense punishable with im prisonment|in the state prison in either of the judicial districts of this state having a penitentiary within said judicial district, the court before which said conviction shall be had may, in its discretion, sentence the person so convicted to imprisonment in the penitentiary, situated in that judicial district.” (Laws of 1856, p. 251, chap. 158.)
The effect of these two acts is to enable the court, in its discretion, to exercise leniency in favor of youthful criminals in the selection of the place of imprisonment, leaving the maximum term of imprisonment the same as that prescribed by the Bevised Statutes for all persons liable to punishment for grand larceny.
These acts taken in connection with the Bevised Statutes, recognize and authorize imprisonment in three different *498places for the crime of grand larceny, viz., state prison, penitentiary, and house of refuge; offenders over twenty-one are to be imprisoned in the state prison; those between twenty-one and sixteen in the state prison or penitentiary, at the discretion of the court; those under sixteen in the state prison or house of refuge, at the discretion of the court.
The place of imprisonment is to be designated by the court in which the prisoner is convicted. In order to enable the court to make such designation, it must, before passing sentence (which.is the judgment of the court), pass on and determine the age of the offender. The very vesting this discretion in the court gives it power and renders it competent to determine the question ; when that determination is made it is the final adjudication of a competent court, and can no more be inquired into on Habeas corpus than can the guilt or innocence of a prisoner who has either pleaded, or been found by the jury, guilty of” the offense charged in the indictment.
If error is committed in such determination it can only be corrected, if at all, in the same manner as errors in admitting or rejecting evidence, in charging or refusing to charge the jury,or rendering verdicts on insufficient evidence; and that manner is by writ of error or a motion for a new trial, when the court has power to entertain such motion.
Writ discharged.and prisoner remanded.