Added error message for api failure
Added code to return a list of open tickets