In Elmah there two ways to filter exception
<elmah>
<errorFilter>
<test>
<or>
<equal binding="HttpStatusCode" value="404" type="Int32" />
<is-type binding="BaseException" type="Namespace.BaseException, AssembyName" />
</or>
</test>
</errorFilter>
</elmah>
<elmah>
<errorFilter>
<test>
<or>
<equal binding="HttpStatusCode" value="404" type="Int32" />
<is-type binding="BaseException" type="Namespace.BaseException, AssembyName" />
</or>
</test>
</errorFilter>
</elmah>
<elmah>
<errorFilter>
<test>
<or>
<equal binding="HttpStatusCode" value="404" type="Int32" />
<is-type binding="BaseException" type="Namespace.BaseException, AssembyName" />
</or>
</test>
</errorFilter>
</elmah>
Melbourne, Australia
14 December 2015
<elmah>
<errorFilter>
<test>
<or>
<equal binding="HttpStatusCode" value="404" type="Int32" />
<is-type binding="BaseException" type="Namespace.BaseException, AssembyName" />
</or>
</test>
</errorFilter>
</elmah>