I have this config which works and redirects the following errors correctly
You cannot override httpErrors "defaultPath" attribute in IISExpress because of applicationhost.config locked that attribute:
You can read more about it here: https://support.microsoft.com/en-us/kb/942055 This problem can occur:
when the specified portion of the IIS configuration file is locked at a higher configuration level. To resolve this problem, unlock the specified section, or do not use it at that level. For more information on configuration locking, see How to Use Locking in IIS 7.0 Configuration.