If API method fails or succeeds, return data structure with information about failure or success and output from operation