title: Handling error on clicking cancel in htaccess authentication
body: <p>I have written a .htaccess file and I am able to authenticate a the username and password correctly. But when I click cancel during the htaccess authentication, I get an "Access Error - Unauthorized" or a server error message. </p>
  
  <p>firstly I am not sure what the error code is. I tried the following </p>
  
  <pre><code>ErrorDocument 400 /400.html
  </code></pre>
  
  <p>I also tried with the error codes 401, 403, 404, 500 but still that error persists. </p>
  
  <p>My htacess file looks like this.. I have used the &lt; files > tag to enforce the authentication for different html files. </p>
  
  <pre><code>AuthType Basic
  AuthName "prompt"
  AuthUserFile /.htpasswd
  Require user mike 
  </code></pre>
  
  <p>Do I need to place the "ErrorDocument" for every html file that I am trying to protect or just one "ErrorDocument" statement at the end would suffice for all the files that I am trying to protect..?</p>