My ASP .Net website's web.config is configured as
<system.web>
.....
<customErrors mode="RemoteOnly">
<error statusCode="500" redirect="/500/" />
</customErrors>
<system.webServer>
....
<httpErrors>
<remove statusCode="400" subStatusCode="-1" />
<remove statusCode="401" subStatusCode="-1" />
<remove statusCode="403" subStatusCode="-1" />
<remove statusCode="404" subStatusCode="-1" />
<remove statusCode="500" subStatusCode="-1" />
<error statusCode="400" path="/404/" responseMode="Redirect" />
<error statusCode="401" path="/404/" responseMode="Redirect" />
<error statusCode="403" path="/404/" responseMode="ExecuteURL" />
<error statusCode="404" path="/404/" responseMode="ExecuteURL" />
<error statusCode="500" path="/500/" responseMode="ExecuteURL" />
</httpErrors>
I test a 404 page and my friendly error page displays but when i add < to the URL which i believe returns a 400 response i just get the YSOD (Yellow screen of death) instead of the expected friendly page?
What have i missed off?