Luke 23:6-12
[6] On hearing this, Pilate asked if the man was a Galilean. [7] When he learned that Jesus was under Herod's jurisdiction, he sent him to Herod, who was also in Jerusalem at that time. [8] When Herod saw Jesus, he was greatly pleased, because for a long time he had been wanting to see him. From what he had heard about him, he hoped to see him perform a sign of some sort. [9] He plied him with many questions, but Jesus gave him no answer. [10] The chief priests and the teachers of the law were standing there, vehemently accusing him. [11] Then Herod and his soldiers ridiculed and mocked him. Dressing him in an elegant robe, they sent him back to Pilate. [12] That day Herod and Pilate became friends---before this they had been enemies.

This Herod was Herod Antipas, son of Herod the Great who had ordered the massacre of Bethlehem’s baby boys just after Jesus’ birth in an attempt to get rid of a ‘rival king’. Antipas had beheaded John the Baptist ( Jesus’ cousin) after making a foolish promise to his wife’s daughter (his wife was actually his brother’s wife but he’d taken her from his brother - not exactly a moral family...). Antipas had previously been worried that Jesus was John back from the dead.

So, with no remorse for what he’d done to John, or compassion for the exhausted and demeaned man in front of him, he questioned the Lord Jesus. It’s no wonder that Jesus (who had earlier called Herod a fox) refused to answer his questions. So Antipas and his soldiers ‘ridiculed and mocked him’ verse 11. All of this fulfilled the prophecy in Isaiah:

Isaiah 53:3,7
[3] He was despised and rejected by mankind, a man of suffering, and familiar with pain. Like one from whom people hide their faces he was despised, and we held him in low esteem. [7] He was oppressed and afflicted, yet he did not open his mouth; he was led like a lamb to the slaughter, and as a sheep before its shearers is silent, so he did not open his mouth.

But Jesus bore man’s judgement because he knew it was God’s judgement on mankind, in whose place he stood - so that he could save us. It was all endured for us.