Made the default error message configurable in ErrorMessageRegistry