Re: How to express no matching results in HTTP SEARH method?

Willy Tarreau <w@1wt.eu> Thu, 05 November 2020 03:51 UTC

Return-Path: <ietf-http-wg-request+bounce-httpbisa-archive-bis2juki=lists.ie@listhub.w3.org>
X-Original-To: ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com
Delivered-To: ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id B648A3A1694 for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Wed, 4 Nov 2020 19:51:54 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.648
X-Spam-Level:
X-Spam-Status: No, score=-2.648 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, HEADER_FROM_DIFFERENT_DOMAINS=0.25, MAILING_LIST_MULTI=-1, RCVD_IN_MSPIKE_H4=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 1epd8HdQNpzq for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Wed, 4 Nov 2020 19:51:52 -0800 (PST)
Received: from lyra.w3.org (lyra.w3.org [128.30.52.18]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 0A05F3A1693 for <httpbisa-archive-bis2Juki@lists.ietf.org>; Wed, 4 Nov 2020 19:51:51 -0800 (PST)
Received: from lists by lyra.w3.org with local (Exim 4.92) (envelope-from <ietf-http-wg-request@listhub.w3.org>) id 1kaWGy-0003F4-Al for ietf-http-wg-dist@listhub.w3.org; Thu, 05 Nov 2020 03:49:16 +0000
Resent-Date: Thu, 05 Nov 2020 03:49:16 +0000
Resent-Message-Id: <E1kaWGy-0003F4-Al@lyra.w3.org>
Received: from titan.w3.org ([128.30.52.76]) by lyra.w3.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from <w@1wt.eu>) id 1kaWGx-0003EI-0X for ietf-http-wg@listhub.w3.org; Thu, 05 Nov 2020 03:49:15 +0000
Received: from wtarreau.pck.nerim.net ([62.212.114.60] helo=1wt.eu) by titan.w3.org with esmtp (Exim 4.92) (envelope-from <w@1wt.eu>) id 1kaWGv-00027C-3L for ietf-http-wg@w3.org; Thu, 05 Nov 2020 03:49:14 +0000
Received: (from willy@localhost) by pcw.home.local (8.15.2/8.15.2/Submit) id 0A53moh5021045; Thu, 5 Nov 2020 04:48:50 +0100
Date: Thu, 05 Nov 2020 04:48:50 +0100
From: Willy Tarreau <w@1wt.eu>
To: Austin Wright <aaa@bzfx.net>
Cc: Carsten Bormann <cabo@tzi.org>, Sawood Alam <ibnesayeed@gmail.com>, ietf-http-wg <ietf-http-wg@w3.org>
Message-ID: <20201105034850.GA20974@1wt.eu>
References: <CALOnmf-e24a=9ScKg3M==cSpG8TMd1JnMiecWgUMtD0a17xRgA@mail.gmail.com> <DE3B489F-34C5-461C-A34E-142C0595498C@bzfx.net> <4B9C0739-2BD3-4451-B29B-4ADB8E24208E@tzi.org> <45AA503F-CAF2-4A47-AB6C-AA09D2FEEA37@bzfx.net>
MIME-Version: 1.0
Content-Type: text/plain; charset="iso-8859-1"
Content-Disposition: inline
Content-Transfer-Encoding: 8bit
In-Reply-To: <45AA503F-CAF2-4A47-AB6C-AA09D2FEEA37@bzfx.net>
User-Agent: Mutt/1.6.1 (2016-04-27)
Received-SPF: pass client-ip=62.212.114.60; envelope-from=w@1wt.eu; helo=1wt.eu
X-W3C-Hub-Spam-Status: No, score=-7.9
X-W3C-Hub-Spam-Report: BAYES_00=-1.9, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, W3C_AA=-1, W3C_IRA=-1, W3C_IRR=-3, W3C_WL=-1
X-W3C-Scan-Sig: titan.w3.org 1kaWGv-00027C-3L 9826f0b3c57ed876836cab6f08662835
X-Original-To: ietf-http-wg@w3.org
Subject: Re: How to express no matching results in HTTP SEARH method?
Archived-At: <https://www.w3.org/mid/20201105034850.GA20974@1wt.eu>
Resent-From: ietf-http-wg@w3.org
X-Mailing-List: <ietf-http-wg@w3.org> archive/latest/38169
X-Loop: ietf-http-wg@w3.org
Resent-Sender: ietf-http-wg-request@w3.org
Precedence: list
List-Id: <ietf-http-wg.w3.org>
List-Help: <https://www.w3.org/Mail/>
List-Post: <mailto:ietf-http-wg@w3.org>
List-Unsubscribe: <mailto:ietf-http-wg-request@w3.org?subject=unsubscribe>

On Wed, Nov 04, 2020 at 06:53:49PM -0700, Austin Wright wrote:
> 
> 
> > On Nov 4, 2020, at 15:30, Carsten Bormann <cabo@tzi.org> wrote:
> > 
> > On 2020-11-04, at 21:49, Austin Wright <aaa@bzfx.net> wrote:
> >> 
> >> A 204 is identical to sending a 200 response with Content-Length: 0
> > 
> > ?
> > 
> > https://tools.ietf.org/html/rfc7231#section-6.3.5
> > 
> > And it's not like the spec is confabulating here:
> > 
> > https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/204
> > 
> > Grüße, Carsten
> > 
> 
> 
> What's the question, exactly? 
> 
> Maybe I'm being unclear. In responses without a Content-Length or
> Transfer-Encoding header, normally the response message only ends when the
> TCP connection is terminated. The exception is a 204; the next response
> begins immediately when the headers end.

Absolutely. 204 is a 200 with no payload. Its use is mainly for methods
which don't expect a response, but like any 2xx it can be simplified to
the equivalent 200 by agents which don't care about specific statuses,
thus it simplifies as a 200 with no payload.

Willy