added missing function to check for resource up and down errors