CORE-3882: added an error code for illegal argument values