If any Magistrate not empowered by law to do any of the following things, namely:—
(a) to issue a search-warrant under section 97;
(b) to order, under section 174, the police to investigate an offence;
(c) to hold an inquest under section 196;
(d) to issue process under section 207, for the apprehension of a person within his local jurisdiction who has committed an offence outside the limits of such jurisdiction;
(e) to take cognizance of an offence under clause (a) or clause (b) of sub-section (1) of section 210;
(f) to make over a case under sub-section (2) of section 212;
(g) to tender a pardon under section 343;
(h) to recall a case and try it himself under section 450; or
(i) to sell property under section 504 or section 505, erroneously in good faith does that thing, his proceedings shall not be set aside merely on the ground of his not being so empowered.
Legal Commentary & Landmark Judgments: Section 506
Section 506 of the Bharatiya Nagarik Suraksha Sanhita, 2023 (corresponding to Section 460 of the CrPC, 1973) enumerates the procedural irregularities committed by Magistrates in good faith that do not vitiate the proceedings.
If the prosecution argues that a magisterial defect is saved by Section 506, examine whether the Magistrate acted with lack of good faith or whether the defect actually falls under the incurable catalogue of Section 507.