Many connect API calls will return negative one (-1) on failure and one (1) on success. Check here for a full list of error codes and their descriptions.