Court is the temple of justice and judges are the god of "temple of justice". Advgyan is just an educational website.
Here we will see Section 342 IPC | Indian Penal Code.
Punishment for wrongful confinement.— Whoever wrongfully confines any person shall be punished with imprisonment of either description for a term which may extend to one year, or with fine which may extend to one thousand rupees, or with both.