Are you sure about this part? If the response is not valid (xml error) or (json error), the twitter client will throw an exception & so, in this case, the twitter client will not return a string describing the failure but throwing an exception describing the failure.