
    The People of the State of New York ex rel. James Smith, Appellant, v Harold D. Graham, Superintendent, Auburn Correctional Facility, Respondent.
    [971 NYS2d 708]—
   Appeal from a judgment (denominated order) of the Supreme Court, Cayuga County (Thomas G. Leone, A.J.), entered December 21, 2011 in a proceeding pursuant to CFLR article 70. The judgment denied the petition.

It is hereby ordered that the judgment so appealed from is unanimously affirmed without costs.

Memorandum: Petitioner commenced this proceeding seeking a writ of habeas corpus. In support thereof, he contended, inter alia, that he was improperly sentenced as a persistent violent felony offender, the evidence is legally insufficient to support the conviction of sodomy in the first degree (Penal Law former § 130.50 [1]), and he was denied his right to effective assistance of counsel. We conclude that Supreme Court properly denied the petition. Those contentions could have been raised on direct appeal or by a motion pursuant to CPL article 440, and thus habeas corpus relief is unavailable (see People ex rel. Donato v Kirkpatrick, 73 AD3d 1450, 1451 [2010], lv denied 15 NY3d 707 [2010]; People ex rel. Mills v Poole, 55 AD3d 1289, 1290 [2008], lv denied 11 NY3d 712 [2008]). Present — Scudder, EJ, Feradotto, Garni, Valentino and Whalen, JJ.  