Return Codes

When the function is successful, the return code is set as 0, and any output data is returned to the caller, in the same way as any other command.

When the function is unsuccessful, the return code is set to a non-zero value, and a send error is returned to the caller along with a message indicating the cause of the failure (if possible).