Code 1016 error message

Hey everyone. I’ve been getting the dreaded “unable to connect to battle.net. please check your network settings (code 1016)” since yesterday evening. Yesterday afternoon I played and had no issues but then when I tried to play yesterday evening I got the error message. I’m connected via ethernet cable to my Xbox series X and I did a network test on my Xbox and it says I’m connected to the internet. I really want to play and it’s pissing me off. I don’t know what to do. Thank you