Sections 25 and 26 of the Indian Evidence Act, 1872 generally make confessions made to a police officer or while in police custody inadmissible. However, Section 27 provides an exception: "Provided that, when any fact is deposed to as discovered in consequence of information received from a person accused of any offence, in the custody of a police officer, so much of such information, whether it amounts to a confession or not, as relates distinctly to the fact thereby discovered, may be proved." This means only the part of the information given by the accused in custody that leads to the discovery of a relevant fact (like the weapon, stolen goods, or the body) is admissible in court.