- You are offline.
- Steam is in offline mode.
- Steam is on maintenance.
- Steam has any other issues.
- You played a game with a cracked steamapi without restarting Steam after that.
In every case - restarting Steam should fix it, aside if it or you are actually offline.