Article 501 [source]

Spanish Criminal Code
English translation

The judicial authority that accuses or prosecutes a member of the Cortes Generales or of a Legislative Assembly of an Autonomous Community without the requirements established by current legislation, will be punished with the penalty of special disqualification for employment or public office of ten to twenty years.