I saw how to handle error from chain extension on smart contract side https://paritytech.github.io/ink-docs/macros-attributes/chain-extension#error-code
But I can't find example and can't understand how to return error from chain extension implementation?
return Err(DispatchError::Other("Unimplemented func_id"))
or
Ok(RetVal::Converging(1))
What I need return from chain extension call function to have possibility get this error:
#[ink(extension = 1106, returns_result = true)]
fn some_func(subject: PalletAssetBalanceRequest) -> Result([u8; 16], SomeError);