In 1879 the legislature conferred on courts of special sessions exclusive jurisdiction, among other things, to try charges of petit larceny not charged as a second offense. The recorder of the city of Cohoes was vested with all the powers of courts of special sessions. In 1880 the legislature passed an act by which, among other things, it was provided that when any person is brought before said recorder charged with “ petit larceny, first offense, such recorder shall, upon conviction of such offense, have power to punish by a fine not exceeding $250, or by imprisonment in the Albany Penitentiary at hard labor, for a term not exceeding one year, or by both such fine and imprisonment ” (Laws of 1880, chap. 456, sec. 29).
By the general law the punishment for petit larceny, first offense, in other parts of the state, is imprisonment for six months, or by fine not exceeding $100, or both. Such being the law,'Bayard was tried and convicted before the recorder of Cohoes for petit larceny, and sentenced to be imprisoned for one year. He sued out his writ of habeas corpus before a justice of this court, and, upon the hearing after return, was discharged. This appeal is brought to review the order discharging him. The learned justice held that the law of 1880, above quoted, was unconstitutional, and that it gave no jurisdiction to the recorder of Cohoes to sentence for one year’ for petit larceny committed in that city, while the punishment for the same offense elsewhere in the state was but half so great.
*76It may be premised that the courts are at liberty to declare a statute unconstitutional only when it conflicts with some express provision or limitation of the constitution. They ought not to, nor can they declare a law invalid because, in their judgment, it conflicts with the spirit supposed to pervade the constitution, but not expressed in words. “ When a statute is challenged as in conflict with the fundamental law, a clear and substantial conflict must be found to exist to justify its condemnation ” (Matter of N. Y. Elevated R. R. Co., 70 N. Y., 327-342; People agt. Albertson, 55 N. Y., 50-54; People agt. Comstock, 78 N. Y., 356). Judge Coolet has so fully and accurately laid down the law on this subject that it is necessary only to refer to his learned work to ascertain the extent of the duty,' and, therefore, of the right of courts to declare an act of the legislature to be void (Cooley Const. Lim., 159, 171, 174).
Whether or not this is a local act, we do not think important in this connection. The constitution has forbidden the legislature to pass private or local bills in certain cases, but in all other cases the law-malting power is unrestrained in that regard.
There is authority for saying that this portion of the law under consideration is not local or private, but public (Williams agt. People, 24 N. Y., 405-407; State agt. Co. Com., 29 Md., 516), but we do not think it necessary to decide that question.
Is the punishment of petit larceny in the city of Cohoes by imprisonment for one year, when outside of that city it is punishable but by six months’ imprisonment, a cruel and unusual punishment, so that the law authorizing it is invalid ?
The learned justice who made the order under consideration, thought that, as petit larceny was punished generally throughout the state by imprisonment for six months only, it was cruel and unusual to increase the punishment for that offense when committed within the city of Coho.es.
We first find the injunction against cruel and unusual *77punishment in the declaration of rights presented by the convention to William and Mary, before settling the crown upon them in 1688.
That declaration recites the crimes and errors which had made the revolution necessary. These recitals consist of the acts only of the former king and the judges appointed by him, and one of them was that “ illegal and cruel punishments had been inflicted’* (Stephens' English Const., 44).
The punishments complained of were the pillories, slittings, and mutilations which the corrupt judges of King James had inflicted without warrant of law, and the declaration was aimed at the acts of the executive, for the judges appointed by him and removable at pleasure were practically part of the executive. It clearly did not then refer to the degree of punishment, for the criminal law of England was at that time disgraced by the infliction of the very gravest punishment for slight offenses, even petit larceny being then punishable with death.
But the declaration was intended to forbid the imposition of punishment of a kind not known to the law, or not warranted by the law.
The courts have rarely had occasion to construe the meaning of the phrase “ cruel and unusual punishment,” and since no punishment can be inflicted until authorized by the legislature which is often elected, and represents the general moral idea of the people, it is not likely that they will often be called on to construe it. The text writers, however, have discussed it to some extent, and they seem to understand it as prohibiting any cruel or degrading punishment not known to the common law, and probably also, those degrading punishments which in any state had become obsolete when its existing constitution was adopted, and punishments so disproportioned to the offense as to shock the sense of the community (Cooley's Const. Lim., 329; Story on Const., sec. 1903; Cooley's Prin. Const. Law, 296; Ah Kow agt. Neman, 18 Am. L. Reg. [N. S.], 676).
*78Giving the clause this broad meaning it will yet not be broad enough to forbid the passage of the law under consideration.
The punishment authorized by this law was the ordinary kind of punishment for all minor offenses, and it cannot fairly be said to be either cruel or unusual, unless we are prepared to say that the legislature having established a general maximum of punishment throughout the state, cannot increase or change it as to particular localities to meet especial emergencies. That the law-making power can fix the punishment for crime and determine its severity cannot be denied (Commonwealth agt. Hitchings, 5 Gray, 482, 486; Cooley’s Prin., of Const. Law, 296). There is no constitutional law which limits the power of the legislature in criminal any more than in civil cases. In each the rules are the same, and if we wish to limit either we must find the right in the constitution or we cannot find it at all Many cases can be imagined where especial circumstances make it advisable that some act done in a particular locality shall be declared a crime, or that it shall be necessary to prevent in that place the commission of some peculiar crime. Of this necessity the legislature must be the sole arbiter. We find in practice that many acts are crimes and punishable if done in one part of the state, which are innocent if done in another.
We can see no difference in principle between the act in question and the large number of laws of the kind mentioned above. It may well be that the state of affairs in Cohoes when this act was passed was such as to require stringent regulations for the prevention of petty crimes. If it were so, it was for the legislature to decide, and having decided, to act accordingly. If the law applied to all persons in that locality, we do not think it violates the constitution (Cooley’s Const. Lim., 390).
The reasoning of judge Denio in Williams agt. People (24 N. Y., 405, 401, 408) is authority in favor of the validity of the law in question, and as the report shows that all the *79judges, except Sutherland, J., concurred in his opinion, the reasoning has almost the weight of an express decision, although the court did not pass upon the question.
We do not consider the expediency or propriety of this act— that is of no importance to our decision. Laws may be inexpedient, oppressive, even cruel, but unless they infringe upon some constitutional restrictions, the remedy is with the electors and not with the courts.
The order discharging the prisoner must be reversed, and the prisoner remanded.
Learned, P. J., and Osborn, J., concur.