When the arrest, confinement, or detention of a person by warrant, mandate, or process is manifestly illegal and shows malice and oppression, an officer issuing or knowingly and maliciously executing the same shall, upon conviction thereof, be removed from office and punished by imprisonment for not less than one nor more than ten years.
OCGA § 16-5-42