anchor.diff:                               {auth_bucket, fun handle_bucket_flush/3,
                                 [PoolId, Id]};
                            _ ->
  -                             ns_log:log(?MODULE, 100, "Invalid post received: ~p", Req),
  +                             ns_log:log(?MODULE, 0001, "Invalid post received: ~p", Req),
                                {done, Req:not_found()}
                        end;
                    'DELETE' ->
  
positive.code:                 {ok, undefined, _} -> Req:response({401, [], []});
                  {ok, _, undefined} -> Req:response({401, [], []});
                  {ok, OtpNode, OtpCookie} ->
                      case ns_cluster:join(
                             list_to_atom(binary_to_list(OtpNode)),
                             list_to_atom(binary_to_list(OtpCookie))) of
                          ok -> Req:respond({200, [], []});
                          _  -> Req:respond({401, [], []})
                      end;
                  _ -> Req:response({401, [], []})
  
negative.code:                          ["pools", PoolId, "buckets", Id] ->
                               {auth, fun handle_bucket_update/3, [PoolId, Id]};
                           _ ->
                               ns_log:log(?MODULE, 0003, "Invalid put received: ~p", Req),
                               {done, Req:respond({405, [], "Method Not Allowed"})}
                       end;
                   _ ->
                       ns_log:log(?MODULE, 0004, "Invalid request received: ~p", Req),
                       {done, Req:respond({405, [], "Method Not Allowed"})}
               end,
      case Action of
  