whipping boy

noun
University
1

A boy who was whipped in the stead of a misbehaving prince in early modern Europe.

2

Someone punished for the errors of others.