At common law, an officer who acted beyond the scope of authority was per se civilly liable. Our 4th Amendment was originally based on this principle. https://en.m.wikipedia.org/wiki/Entick_v_Carrington