226. Whoever attempts to commit suicide with the intent to compel or restrain any public servant from discharging his official duty shall be punished with simple imprisonment for a term which may extend to one year, or with fine, or with both, or with community service.
Bharatiya Nyaya Sanhita, 2023
Section 226: Attempt to commit suicide to compel or restrain exercise of lawful power
Chapter XIII — Of Contempts of the Lawful Authority of Public Servants
Source: official text of the Bharatiya Nyaya Sanhita, 2023 (Ministry of Home Affairs).