Section 416 of Bharatiya Nagarik Suraksha Sanhita Act: No appeal in certain cases when accused pleads guilty.

No appeal in certain cases when accused pleads guilty. Bharatiya Nagarik Suraksha Sanhita 2023
Notwithstanding anything in section 415, where an accused person has pleaded guilty and has been convicted on such plea, there shall be no appeal,—
(i) if the conviction is by a High Court; or
(ii) if the conviction is by a Court of Session or Magistrate of the first or second class, except as to the extent or legality of the sentence.