asp.net How to redirect erros to a custom error page

All erros redirected to ErrorPage.htm
except 404 errors are redirected to FileNotFound.aspx

<customErrors mode="On" defaultRedirect="ErrorPage.htm">
<error statusCode="404"
redirect="FileNotFound.aspx"/>
</customErrors>