anchor.diff:                      Msg = iolist_to_binary([<<"I don't know how to search for ">>,
                                               BagName, <<" data objects.">>]),
                       Json = ejson:encode({[{<<"error">>, [Msg]}]}),
  +                    log_request_time("Requested data bag does not exist", State),
                       {{halt, 404}, wrq:set_resp_body(Json, Req), State}
               end;
           _Else ->
  
positive.code: send_stat(completed, Req, #state{request_type=RequestType,
                                   hostname=HostName,
                                   organization_name=OrgName,
                                   start_time=StartTime,
                                   reqid=ReqId}=State) ->
      RequestTime = timer:now_diff(now(), StartTime) div 1000,
      StatusCode = integer_to_list(wrq:response_code(Req)),
      send_stats(State, [{["erchefAPI.application.byStatusCode.", StatusCode], 1, "m"},
  
negative.code:             NoOrg = resource_exists_message(org_not_found, 
                                              wrq:path_info(organization_id, Req)),
              Req1 = wrq:set_resp_body(ejson:encode(NoOrg), Req),
              log_request_time("Requested org not found", State),
              {false, Req1, State}
      end.
  
  