anchor.diff:      {ok, Resp}.
   
   start_response(#httpd{mochi_req=MochiReq}=Req, Code, Headers0) ->
  -    log_request(Req, Code),
  -    couch_stats:increment_counter([couchdb, httpd_status_codes, Code]),
       Headers1 = basic_headers(Req, Headers0),
  -    Resp = MochiReq:start_response({Code, Headers1}),
  +    Resp = handle_response(Req, Code, Headers1, undefined, start_response),
       case MochiReq:get(method) of
           'HEAD' -> throw({http_head_abort, Resp});
           _ -> ok
  
positive.code:     end.
  
  start_chunked_response(#httpd{mochi_req=MochiReq}=Req, Code, Headers0) ->
      log_request(Req, Code),
      couch_stats:increment_counter([couchdb, httpd_status_codes, Code]),
      Headers1 = add_headers(Req, Headers0),
      Resp = MochiReq:respond({Code, Headers1, chunked}),
      case MochiReq:get(method) of
      'HEAD' -> throw({http_head_abort, Resp});
      _ -> ok
  
negative.code:     end.
  
  start_response_length(#httpd{mochi_req=MochiReq}=Req, Code, Headers0, Length) ->
      Headers1 = basic_headers(Req, Headers0),
      Resp = handle_response(Req, Code, Headers1, Length, start_response_length),
      case MochiReq:get(method) of
      'HEAD' -> throw({http_head_abort, Resp});
      _ -> ok
  