pub fn assert_err_code(result: AppResult<impl Debug>, code: ErrorCode)
Assert that the result is an error with the expected ErrorCode.
ErrorCode