507. Irregularities which vitiate proceedings
If any Magistrate, not being empowered by law in this behalf, does any of the following things, namely:---
attaches and sells property under section 85;
issues a search-warrant for a document, parcel or other things in the custody of a postal authority;
demands security to keep the peace;
demands security for good behaviour;
discharges a person lawfully bound to be of good behaviour;
cancels a bond to keep the peace;
makes an order for maintenance;
makes an order under section 152 as to a local nuisance;
prohibits, under section 162, the repetition or continuance of a public nuisance;
makes an order under Part C or Part D of Chapter XI;
takes cognizance of an offence under clause (c) of sub-section (1) of section 210;
tries an offender;
tries an offender summarily;
passes a sentence, under section 364, on proceedings recorded by another Magistrate;
decides an appeal;
calls, under section 438, for proceedings; or
revises an order passed under section 491, his proceedings shall be void.