Idiom for a person who gets owned/caught red handed for his mistake but shows as if nothing is wrong

I think you may use the idiomatic expression have the gall to do something:

  • to do something rude and unreasonable that most people would be too embarrassed to do.

(MacMillan Dictionary)

  • have the gall to pretend they did nothing wrong and to ridicule the corrector.