Section 533(1) in The Code of Criminal Procedure, 1989 (1933 A. D.)
(1)If any Court, before which a confession or other statement of an accused person recorded or purporting to be recorded under section 164 or section 364 is tendered or has been received in evidence, finds that any of the provisions of either of such sections have not been complied with by the Magistrate recording the statement, it shall take evidence that such person duly made the statement recorded; and, notwithstanding anything contained in the Evidence Act, 1977, section 91, such statement shall be admitted if the error has not injured the accused as to his defence on the merits.