<?xml version="1.0"?>
<configuration xmlns="http://schemas.microsoft.com/.NetConfiguration/v2.0">

   <system.web>
   .
   .
   .
      <customErrors
         defaultRedirect="CustomErrorPage.html"
         mode="On" >

         <error statusCode="400" redirect="CustomErrorPage400.html"/>
         <error statusCode="404" redirect="CustomErrorPage404.html"/>
         <error statusCode="500" redirect="CustomErrorPage400.html"/>

      </customErrors>
