diff --git a/elasticsearch-extensions/lib/elasticsearch/extensions/ansi/response.rb b/elasticsearch-extensions/lib/elasticsearch/extensions/ansi/response.rb
index <HASH>..<HASH> 100644
--- a/elasticsearch-extensions/lib/elasticsearch/extensions/ansi/response.rb
+++ b/elasticsearch-extensions/lib/elasticsearch/extensions/ansi/response.rb
@@ -31,7 +31,11 @@ module Elasticsearch
             Actions.send(m, self, options)
           end
 
-          output.compact.join("\n")
+          unless output.compact.empty?
+            output.compact.join("\n")
+          else
+            self.respond_to?(:awesome_inspect) ? self.awesome_inspect : self.inspect
+          end
         end
       end
[EXT] Added, that ANSI extension uses the `awesome_print` gem for "unknown" handlers