You are right, but what I was trying is to create the error pages by status code 401.1 and 401.2 (in IIS 7) and set the path to the error.htm page (already created) which needs to get displayed when the user hit the cancel button. But the thing is here whenever
I add the new status code the entry type is getting local which I need to change it to the inherited, then I think it is going to work. But I am not sure how to change it to inherited ? Please help me out here, thanks in advance.