If you break a school rule, the school can’t just decide how you’ll be punished straight away. They have to look at your particular situation (what has happened, why it happened and what a reasonable outcome would be).
For more information, see “Punishments that are against the law” below