Currently, only `invalidValue` and `notAvailable` allow custom messages (see: CustomFunctions.Error ignores custom error message for some error codes · Issue #2885 · OfficeDev/office-js (github.com)). It doesn't make any sense to ignore the error provided by the developer for the other codes. Please enable custom messages for all error codes.