title: Create Custom Error for Error 403.14 Directory Access Denied
body: <p>This is my first post here, and I have searched for a resolution to this issue here and at many other forums on the web, without success.</p>
  
  <p>I am attempting to create a custom error for directory access denied errors 403.14 for cases where say if someone tries to load the "_assests" directory on a web site. I know I can do a work around by adding a default.aspx page to each directory that I want this to happen with, but was wondering if there is a site wide solution similar to the  tag in the web.config file</p>
  
  <pre><code>&lt;configuration&gt;
  &lt;system.web&gt;
      &lt;customErrors defaultRedirect="/Errors/GenericError.aspx" mode="RemoteOnly"&gt;
        &lt;error statusCode="401"
           redirect="/Errors/401.aspx"/&gt;
        &lt;error statusCode="403"
           redirect="/Errors/403.aspx"/&gt;
        &lt;error statusCode="404"
           redirect="/Errors/404.aspx"/&gt;
      &lt;!-- 
        &lt;error statusCode="403.14"
           redirect="/"/&gt;
      --&gt;
      &lt;/customErrors&gt;
  &lt;/system.web&gt;
  &lt;/configuration&gt;
  </code></pre>
  
  <p>I get the error when coding the web.config that I am unable to use a statusCode with a decimal in it because it's not a datatype Int</p>
  
  <p>I have an IIS 7 on Server 2008.</p>
  
  <p>Any ideas?</p>