It's breaking the APIs and additionally, ErrorCode was supposed to be at the end of the parameters. You're breaking this "rule".
I'd rather add a fetchMessageByUIDWithExtraHeaders() method since it won't be the common case to use those methods.