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 107;
- issues a search warrant for a document, parcel or other thing in the custody of a postal or telegraph 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 for keeping the peace;
- makes an order for maintenance;
- makes an order under section 502 as to possession of immovable property;
- takes cognizance under section 210 of an offence referred to in clause (c) of sub-section (1) of that section;
- tries an offender;
- tries an offender summarily;
- passes a sentence, under section 401, on proceedings recorded by another Magistrate;
- decides an appeal;
- calls, under section 438, for proceedings; or
- revises an order passed under section 440,
his proceedings shall be void.