Article 404 [source]

Spanish Criminal Code
English translation

Any public authority or official who, knowing it to be unjust, issues an arbitrary decision in an administrative matter shall be punished with special disqualification from public employment or office and from exercising the right to passive suffrage for a period of nine to fifteen years.