Use the Output Parameters tab to define the values to be returned to the Instance:

Return Code
This parameter is assigned the value 1 after a successfully completed action, otherwise -1.
Error message
If an error occurred during the execution of the action, this parameter will return the respective error message.