anchor.diff:      {{halt, 500}, Req, State#base_state{log_msg = ERROR}}.
   
   handle_update_result(ok, PolicyName, PolicyData, Req, State) ->
  -    %% Not strictly true...
       LogMsg = {updated, PolicyName},
       ReqWithBody = chef_wm_util:set_json_body(Req, PolicyData),
       {true, ReqWithBody, State#base_state{log_msg = LogMsg}};
  
positive.code:     {[{<<"error">>, list_to_binary("Policy already exists " ++ Name)}]}.
  
  
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  %% TODO!!! set back to real functionality
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  
  delete_resource(Req, State) ->
      {true, Req, State}.
  
  %%%% delete_resource(Req, #base_state{
  %%%%                         organization_name = OrgName,
  %%%%                         chef_db_context = DbContext,
  %%%%                         requestor_id = RequestorId,
  %%%%                         resource_state = #policy_state{
  %%%%                                             oc_chef_policy = InputPolicy }
  %%%%                        } = State) ->
  %%%%     Group = wrq:path_info(policy_group, Req),
  %%%%     Policy = InputPolicy#oc_chef_policy{
  %%%%                last_updated_by = RequestorId,
  %%%%                policy_group = Group
  %%%%               },
  %%%%     ok = oc_chef_wm_base:delete_object(DbContext, Policy, RequestorId),
  %%%%     Ejson = oc_chef_policy:assemble_policy_ejson(Policy, OrgName),
  %%%%     {true, chef_wm_util:set_json_body(Req, Ejson), State}.
  
  malformed_request_message(Any, _Req, _state) ->
      error({unexpected_malformed_request_message, Any}).
  
negative.code:     end.
  
  handle_create_result(ok, PolicyName, PolicyData, Req, State) ->
      LogMsg = {created, PolicyName},
      Uri = oc_chef_wm_routes:route(policy, Req, [{name, PolicyName}]),
      ReqWithURI = chef_wm_util:set_uri_of_created_resource(Uri, Req),
      ReqWithBody = chef_wm_util:set_json_body(ReqWithURI, PolicyData),
      {true, ReqWithBody, State#base_state{log_msg = LogMsg}};
  