ErrorCode should not be mutable