anchor.diff:      ?LOG_DEBUG("Method:      ~p", [Method]),
       ?LOG_DEBUG("Request URI: ~p", [Path]),
       ?LOG_DEBUG("Headers: ~p", [mochiweb_headers:to_list(Req:get(headers))]),
  -    
  +
       {ok, Resp} = case catch(handle_request(Req, DocumentRoot, Method, Path)) of
           {ok, Resp0} ->
               {ok, Resp0};
  
positive.code: handle_replicate_request(_Req, _Method) ->
      throw({method_not_allowed, "POST"}).
  
  handle_unkown_private_uri_request(Req, _Method, UnknownPrivatePath) ->    
    KnownPrivatePaths = ["_utils"],
    Msg = {obj, 
      [
        {error, "Sorry, we could not find the private path '_" ++ 
          mochiweb_util:unquote(UnknownPrivatePath) ++ 
          "' you are looking for. We only know about the following path(s): '" ++ 
          lists:flatten(KnownPrivatePaths) ++ "'"}
      ]
    },
    send_error(Req, 404, Msg).
    
  % Database request handlers
  
  handle_db_request(Req, Method, {Path}) ->
      UriParts = string:tokens(Path, "/"),
      [DbName|Rest] = UriParts,
      handle_db_request(Req, Method, {mochiweb_util:unquote(DbName), Rest});
      
  handle_db_request(Req, 'PUT', {DbName, []}) ->
      case couch_server:create(DbName, []) of
          {ok, _Db} ->
  
negative.code:     mochiweb_http:stop(?MODULE).
  
  handle_request(Req, DocumentRoot) ->
  
      % alias HEAD to GET as mochiweb takes care of stripping the body
      Method = case Req:get(method) of
          'HEAD' -> 'GET';
  