private static ApiException CreateApiExceptionRequestUnsuccessful( int responseCode, string responseBody, string responseId ) { try { return(ExceptionFactory.CreateExceptionForResponse( responseCode, FetchErrorDescriptions(responseBody), responseId )); } catch (JsonException) { return(ExceptionFactory.CreateExceptionForResponse( responseCode, new List <string> { responseBody }, responseId )); } }