Extensions and error codes

Adrian Cole <adrian.f.cole@gmail.com> Wed, 15 October 2014 06: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 (ietfa.amsl.com [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 68FED1A0372 for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Tue, 14 Oct 2014 23:04:06 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -7.012
X-Spam-Level:
X-Spam-Status: No, score=-7.012 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, RCVD_IN_DNSWL_HI=-5, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, T_RP_MATCHES_RCVD=-0.01] autolearn=ham
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 7UUsAjro_nei for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Tue, 14 Oct 2014 23:04:05 -0700 (PDT)
Received: from frink.w3.org (frink.w3.org [128.30.52.56]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id B4DA21A0370 for <httpbisa-archive-bis2Juki@lists.ietf.org>; Tue, 14 Oct 2014 23:04:04 -0700 (PDT)
Received: from lists by frink.w3.org with local (Exim 4.72) (envelope-from <ietf-http-wg-request@listhub.w3.org>) id 1XeHeR-0006s4-BP for ietf-http-wg-dist@listhub.w3.org; Wed, 15 Oct 2014 06:01:35 +0000
Resent-Date: Wed, 15 Oct 2014 06:01:35 +0000
Resent-Message-Id: <E1XeHeR-0006s4-BP@frink.w3.org>
Received: from lisa.w3.org ([128.30.52.41]) by frink.w3.org with esmtp (Exim 4.72) (envelope-from <adrian.f.cole@gmail.com>) id 1XeHeK-0006rL-AG for ietf-http-wg@listhub.w3.org; Wed, 15 Oct 2014 06:01:28 +0000
Received: from mail-ob0-f173.google.com ([209.85.214.173]) by lisa.w3.org with esmtps (TLS1.0:RSA_ARCFOUR_SHA1:16) (Exim 4.72) (envelope-from <adrian.f.cole@gmail.com>) id 1XeHeJ-0007HB-E7 for ietf-http-wg@w3.org; Wed, 15 Oct 2014 06:01:28 +0000
Received: by mail-ob0-f173.google.com with SMTP id wp4so468175obc.32 for <ietf-http-wg@w3.org>; Tue, 14 Oct 2014 23:01:01 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=AVMqoCnIMzlURRiZqdJeNiT7j3bKySZOLYb0OH0hkKQ=; b=cCSG6QUR6orrtu7Sq6ClhrTefldByUNWBLzWtIFIOrQnpV20B5mo8afOUjdswkApCZ sUjNOTei4nyIqORWORApi2af95zUbYJgQ+e8X7q/ek4mzBSrA9FhBuGrKFzPOqChn87f ugShZyppl47Bbptmkf1URtxe+zwjVogBVS7kBK/PrCpYlPduIN0ADS6a+cHwmA2CQHBN sxRvlJAV8Xr2URCR+JS1Y4hDnATFnfnelcP39q0mqBIQaayvg8J5EImc2T2TL+9vk6Hz 94GBYA6JnFru+ttcAYnIHsuL990zeFUyUN6K/6YHxiVMORTkEG9Ff1lhlq5K3aR6ZBxd 6JGg==
MIME-Version: 1.0
X-Received: by 10.182.126.233 with SMTP id nb9mr484713obb.48.1413352861633; Tue, 14 Oct 2014 23:01:01 -0700 (PDT)
Received: by 10.202.17.132 with HTTP; Tue, 14 Oct 2014 23:01:01 -0700 (PDT)
Date: Tue, 14 Oct 2014 23:01:01 -0700
Message-ID: <CAHzwyDvuD_5tq+ycFwSyoiKyQ_C92Pixc-7kCKhU8iOU79p3Dw@mail.gmail.com>
From: Adrian Cole <adrian.f.cole@gmail.com>
To: HTTP Working Group <ietf-http-wg@w3.org>
Content-Type: text/plain; charset="UTF-8"
Received-SPF: pass client-ip=209.85.214.173; envelope-from=adrian.f.cole@gmail.com; helo=mail-ob0-f173.google.com
X-W3C-Hub-Spam-Status: No, score=-3.3
X-W3C-Hub-Spam-Report: AWL=-2.548, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7, SPF_PASS=-0.001
X-W3C-Scan-Sig: lisa.w3.org 1XeHeJ-0007HB-E7 4c93ecfddbc1843884946f918480daac
X-Original-To: ietf-http-wg@w3.org
Subject: Extensions and error codes
Archived-At: <http://www.w3.org/mid/CAHzwyDvuD_5tq+ycFwSyoiKyQ_C92Pixc-7kCKhU8iOU79p3Dw@mail.gmail.com>
Resent-From: ietf-http-wg@w3.org
X-Mailing-List: <ietf-http-wg@w3.org> archive/latest/27615
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>

I had a look at a websocket over http/2 draft yesterday. I noticed it
saying we should return an http 501 upon some setting thing not
working out.

https://github.com/yutakahirano/ws-over-http2/blob/master/draft-hirano-websocket-over-http2.txt#L235

This made me scratch my head, as I implement http/2 framing, settings,
etc than the layer than handles http semantics (eg what a 501 means).
IOTW, I would have expected an extension to enumerate an error I'd
send on goaway, not an http response code.

As an implementor, I would handle code very differently if something
in SETTINGS means I should return a specific HEADERS frame back.

Looking at the spec, it doesn't specify on what types of actions we
might take on a SETTING being unsupported. Should we be?
https://tools.ietf.org/html/draft-ietf-httpbis-http2-14#section-5.5

Apologies, if I missed a thread that discussed this.
-A