title: Error code for "not logged in" or page redirection
body: <p>Is there an error code for handling users who are not logged in user but tries to enter a webpage by manually typing the URL?</p>
  
  <p>Currently my web application redirects the user to the login page, but I would like to know if there is a better way to handle the page redirection to an error page in the web.config.</p>
  
  <p><strong>EDIT:</strong></p>
  
  <p><code>Forms</code> tag in web.config:</p>
  
  <p><code>&lt;forms name=".ADAuthCookie" loginUrl="Login.aspx" defaultUrl="~/dataRefresh.aspx" timeout="20" /&gt;</code></p>