The first, and most obvious explanation for this error message is that your PlayStation Plus or Xbox Live Gold subscription has expired, as you need to have an active subscription to play GTA Online.