When someone tries to access a space/page via a link and has not yet signed into the browser they receive the below error

I understand that they are receiving this message because they haven't signed in, but it leads the end users to think their account doesn't have access as opposed to the fact that they aren't logged in.
Is there a way to push people to a sign in page in this scenario?