Whoever voluntarily obstructs any person so as to prevent that person from proceeding in any direction in which that person has a right to proceed, is said wrongfully to restrain that person.
Exception.-The obstruction of a private way over land or water which a person in good faith believes himself to have a lawful right to obstruct, is not an offence within the meaning of this section.
Illustration
A obstructs a path along which Z has a right to pass, A not believing in good faith that he has a right to stop the path. Z is thereby prevented from passing. A wrongfully restrains Z.
331 IPC Voluntarily causing grievous hurt to extort confession, or to compel restoration of property
332 IPC Voluntarily causing hurt to deter public servant from his duty
333 IPC Voluntarily causing grievous hurt to deter public servant from his duty
334 IPC Voluntarily causing hurt on provocation
335 IPC Voluntarily causing grievous hurt on provocation
336 IPC Act endangering life or personal safety of others
337 IPC Causing hurt by act endangering life or personal safety of others
338 IPC Causing grievous hurt by act endangering life or personal safety of others