Fix expected return type of ExtendedErrCode.

The return type should be ExtendedResult.