before 1859 (most likely)
Rancorous Carpe (fl. 1876) was a caretaker of Hogwarts School of Witchcraft and Wizardry. He designed an elaborate trap in an attempt to capture and remove Peeves from Hogwarts; the trap included an assortment of weapons which the caretaker believed would be irresistible to Peeves, as well as a vast enchanted bell jar reinforced by various Containment Charms. He believed it would work, but instead Peeves burst through the bell jar, shattering the corridor with glass and firing random weapons from the trap. The castle was evacuated and it wasn't until the Headmistress of the day, Eupraxia Mole, agreed to let Peeves swim in the boys toilet once weekly, steal bread from the kitchen for throwing purposes, as well as a new hat made by Madame Bonhabille of Paris.
Rancourous is an English word which means "characterized by bitterness and resentment",which is a description that fits many caretakers at Hogwarts.
Carpe may also be made to fit the exclamation Carpe diem!. It is used to urge someone to use what they have to succeed.This is how he planned to capture Peeves.
- Pottermore (Mentioned only)
Notes and references