sentences:  From 1836 to 1838, the Bolivian Penal Code, which was imposed by General Andrés de Santa Cruz when the Peru–Bolivian Confederation was established, did not expressly prohibit homosexuality.The first Criminal Code of Peru, approved in 1863, included sodomy as a criminal act.According to article 272, someone committing sodomy would be imprisoned, with the same penalties as imposed on the perpetrators of crimes related to rape and statutory rape.