Were you able to resolve the 401 error?  Often times, these errors are due to a mismatch in the oauth_secret. It needs to match across configs (e.g. /etc/katello/katello.conf, /etc/candlepin/candlepin.conf, /etc/pulp/server.conf).  If any of these configs needs to be updated the appropriate service must be restarted (e.g. katello, tomcat6, httpd).