(1)
An action lies against a justice of the peace in respect of what he does or omits to do—
(a)
in the purported execution of his duty as a justice of the peace, but
(b)
in relation to a matter not within his jurisdiction,
if, but only if, it is proved that he acted in bad faith.
(2)
…