Re: p1: generating "internal" errors

Willy Tarreau <w@1wt.eu> Sat, 20 April 2013 07:04 UTC

Return-Path: <ietf-http-wg-request@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 8D2AF21F854E for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Sat, 20 Apr 2013 00:04:32 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -10.599
X-Spam-Level:
X-Spam-Status: No, score=-10.599 tagged_above=-999 required=5 tests=[BAYES_00=-2.599, RCVD_IN_DNSWL_HI=-8]
Received: from mail.ietf.org ([12.22.58.30]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id kFZ1LmPmnXhM for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Sat, 20 Apr 2013 00:04:32 -0700 (PDT)
Received: from frink.w3.org (frink.w3.org [128.30.52.56]) by ietfa.amsl.com (Postfix) with ESMTP id E27C321F853D for <httpbisa-archive-bis2Juki@lists.ietf.org>; Sat, 20 Apr 2013 00:04:31 -0700 (PDT)
Received: from lists by frink.w3.org with local (Exim 4.72) (envelope-from <ietf-http-wg-request@listhub.w3.org>) id 1UTRqN-0004Vs-Lt for ietf-http-wg-dist@listhub.w3.org; Sat, 20 Apr 2013 07:04:19 +0000
Resent-Date: Sat, 20 Apr 2013 07:04:19 +0000
Resent-Message-Id: <E1UTRqN-0004Vs-Lt@frink.w3.org>
Received: from maggie.w3.org ([128.30.52.39]) by frink.w3.org with esmtp (Exim 4.72) (envelope-from <w@1wt.eu>) id 1UTRqL-0004VD-3T for ietf-http-wg@listhub.w3.org; Sat, 20 Apr 2013 07:04:17 +0000
Received: from 1wt.eu ([62.212.114.60]) by maggie.w3.org with esmtp (Exim 4.72) (envelope-from <w@1wt.eu>) id 1UTRqK-0006AU-C0 for ietf-http-wg@w3.org; Sat, 20 Apr 2013 07:04:17 +0000
Received: (from willy@localhost) by mail.home.local (8.14.4/8.14.4/Submit) id r3K73s7D028604; Sat, 20 Apr 2013 09:03:54 +0200
Date: Sat, 20 Apr 2013 09:03:54 +0200
From: Willy Tarreau <w@1wt.eu>
To: Mark Nottingham <mnot@mnot.net>
Cc: "ietf-http-wg@w3.org Group" <ietf-http-wg@w3.org>
Message-ID: <20130420070354.GH26517@1wt.eu>
References: <EA721AC2-5655-4EC6-851B-303EE22BB670@mnot.net>
Mime-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Disposition: inline
In-Reply-To: <EA721AC2-5655-4EC6-851B-303EE22BB670@mnot.net>
User-Agent: Mutt/1.4.2.3i
Received-SPF: pass client-ip=62.212.114.60; envelope-from=w@1wt.eu; helo=1wt.eu
X-W3C-Hub-Spam-Status: No, score=-3.4
X-W3C-Hub-Spam-Report: AWL=-2.709, RP_MATCHES_RCVD=-0.702, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001
X-W3C-Scan-Sig: maggie.w3.org 1UTRqK-0006AU-C0 a192e990e14568fe5f9e58959ea133c5
X-Original-To: ietf-http-wg@w3.org
Subject: Re: p1: generating "internal" errors
Archived-At: <http://www.w3.org/mid/20130420070354.GH26517@1wt.eu>
Resent-From: ietf-http-wg@w3.org
X-Mailing-List: <ietf-http-wg@w3.org> archive/latest/17390
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: <http://www.w3.org/Mail/>
List-Post: <mailto:ietf-http-wg@w3.org>
List-Unsubscribe: <mailto:ietf-http-wg-request@w3.org?subject=unsubscribe>

On Sat, Apr 20, 2013 at 02:07:52PM +1000, Mark Nottingham wrote:
> p1 3.2.4 requires that a syntax violation in a received response be turned
> into a 502 (Bad Gateway) status code.
> 
> I'm not necessarily against it, but I think if we're going to take this
> approach to errors in received responses, it should be systematic, and we
> should recommend that others do it too. Currently, a lot of people are
> inventing new pseudo status codes to fill this role.
> 
> What do people think?

haproxy does exactly this right now (502) and I was not aware that people
invent their own code, this is pretty bad :-(

> This might not result in any changes in our specs beyond adjusting language
> in a few other places to do the same thing. I could see writing a separate
> spec for a header that described the type of error, though.

Good idea. Alternatively the reason code after the 502 could be modulated too.

Willy