Define following in
web.config
file
<customerrors defaultredirect="~/******.aspx" mode="On"><br />
<error statuscode="500" redirect="~/*****.aspx" /><br />
<error statuscode="404" redirect="~/*****.aspx" /><br />
</customerrors><br />
[updated]
Thanks
Ashish