Added better error handling for when a pure RESTful POST or PUT fails authentication on a request to the AddHandler ActionHandler.