Bharatiya Nyaya Sanhita, 2023
257. Whoever, being a public servant, corruptly or maliciously makes or pronounces in any stage of a judicial proceeding, any report, order, verdict, or decision which he knows to be contrary to law, shall be punished with imprisonment of either description for a term which may extend to seven years, or with fine, or with both. Commitment for trial or confinement by person having authority who knows that he is acting contrary to law.