Add the return for the success promise with the result code.