Return status code in client functions