First of all, this behavior can be caused by this IE (IE8 in my case):

Secondly, this parameter will be ignored if your error page is more than 512 bytes . Ie, your error page should be larger than 512 bytes if you want it to display in Internet Explorer.
source share