Arguing in front of your kids...

So I could be in the wrong here and I would love some advice....

my child has become entitled and it is driving me nuts!!! He thinks it's his way or no way. (He is 10)

Well yesterday my husband and I were bickering. Not arguing, not yelling, just bickering. Well my son shouts from his room "stop it you guys".....

this pissed me off. So I hollered back that if he doesn't want to hear it to shut his door. My husband FLIPPED!!! How dare I talk to our son that way and that he was right, we should stop bickering.... I agree, it's not pretty bickering in front of your kids. But I also think my son has no right telling me what to do.

Ugh. Did I fuck up? How wrong was I?