diff --git a/lib/chef/rest.rb b/lib/chef/rest.rb
index <HASH>..<HASH> 100644
--- a/lib/chef/rest.rb
+++ b/lib/chef/rest.rb
@@ -148,6 +148,9 @@ class Chef
           @cookies["#{url.host}:#{url.port}"] = res['set-cookie']
         end
         run_request(:GET, create_url(res['location']), false, limit - 1, raw)
+      elsif res.kind_of?(Net::HTTPUnauthorized)
+        Chef::Log.error("Node openid registration is not validated")
+        exit(1)
       else
         res.error!
       end
Print a useful message about node validation on HTTP <I> / Unauthorized Error.
This is assuming that we won't <I> errors from other components sharing this code.