Re: Should Web Services be served by a different HTTP n+1?

Mark Nottingham <mnot@mnot.net> Thu, 24 January 2013 21:30 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 CC57D11E80B8 for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Thu, 24 Jan 2013 13:30:27 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -9.779
X-Spam-Level:
X-Spam-Status: No, score=-9.779 tagged_above=-999 required=5 tests=[AWL=0.820, BAYES_00=-2.599, RCVD_IN_DNSWL_HI=-8]
Received: from mail.ietf.org ([64.170.98.30]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id rt+Z8dzKRsPf for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Thu, 24 Jan 2013 13:30:27 -0800 (PST)
Received: from frink.w3.org (frink.w3.org [128.30.52.56]) by ietfa.amsl.com (Postfix) with ESMTP id E2E7D11E80A5 for <httpbisa-archive-bis2Juki@lists.ietf.org>; Thu, 24 Jan 2013 13:30:26 -0800 (PST)
Received: from lists by frink.w3.org with local (Exim 4.72) (envelope-from <ietf-http-wg-request@listhub.w3.org>) id 1TyUMi-00045S-Tz for ietf-http-wg-dist@listhub.w3.org; Thu, 24 Jan 2013 21:29:44 +0000
Resent-Date: Thu, 24 Jan 2013 21:29:44 +0000
Resent-Message-Id: <E1TyUMi-00045S-Tz@frink.w3.org>
Received: from lisa.w3.org ([128.30.52.41]) by frink.w3.org with esmtp (Exim 4.72) (envelope-from <mnot@mnot.net>) id 1TyUMa-00044j-7K for ietf-http-wg@listhub.w3.org; Thu, 24 Jan 2013 21:29:36 +0000
Received: from mxout-07.mxes.net ([216.86.168.182]) by lisa.w3.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.72) (envelope-from <mnot@mnot.net>) id 1TyUMT-0007wc-KM for ietf-http-wg@w3.org; Thu, 24 Jan 2013 21:29:36 +0000
Received: from [192.168.1.80] (unknown [118.209.240.13]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) by smtp.mxes.net (Postfix) with ESMTPSA id 7299122E259; Thu, 24 Jan 2013 16:29:05 -0500 (EST)
Content-Type: text/plain; charset="us-ascii"
Mime-Version: 1.0 (Mac OS X Mail 6.2 \(1499\))
From: Mark Nottingham <mnot@mnot.net>
In-Reply-To: <CAK3OfOjWAJeBYCEftNES6o==7bUUUEpHZEkfJKNJRPOvvG62KA@mail.gmail.com>
Date: Fri, 25 Jan 2013 08:29:02 +1100
Cc: Phillip Hallam-Baker <hallam@gmail.com>, "Julian F. Reschke" <julian.reschke@gmx.de>, "ietf-http-wg@w3.org Group" <ietf-http-wg@w3.org>
Content-Transfer-Encoding: quoted-printable
Message-Id: <C0775E7D-05FC-4C9F-B765-4814C1D145A2@mnot.net>
References: <CAMm+LwgTSw05QLUspAbAyRSWfd8j27fhwPiDSF_TaD8LevftBA@mail.gmail.com> <CAHBU6iu-bH_cEEVNq0CxcHZELjAFZ0Vb6d8cN5y_qbmu6xCKFg@mail.gmail.com> <CAG47hGa+Hp4LmepYOsCXM9p-L-XrP3a6o1S3RorEYiJK8SEmFA@mail.gmail.com> <51015378.5080106@gmx.de> <CAK3OfOgESpx+a2-767ejoksMgXsTjFgQpr4r9fvFjr3O1T33LA@mail.gmail.com> <CAMm+Lwi9QM4eaYBePCDxhOoLw+W2jrabhFAFHWq6FhwF=acVLQ@mail.gmail.com> <CAK3OfOjWAJeBYCEftNES6o==7bUUUEpHZEkfJKNJRPOvvG62KA@mail.gmail.com>
To: Nico Williams <nico@cryptonector.com>
X-Mailer: Apple Mail (2.1499)
Received-SPF: pass client-ip=216.86.168.182; envelope-from=mnot@mnot.net; helo=mxout-07.mxes.net
X-W3C-Hub-Spam-Status: No, score=-3.3
X-W3C-Hub-Spam-Report: AWL=-3.315, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001
X-W3C-Scan-Sig: lisa.w3.org 1TyUMT-0007wc-KM 2cd8883f56faadff4f1ba6573346297f
X-Original-To: ietf-http-wg@w3.org
Subject: Re: Should Web Services be served by a different HTTP n+1?
Archived-At: <http://www.w3.org/mid/C0775E7D-05FC-4C9F-B765-4814C1D145A2@mnot.net>
Resent-From: ietf-http-wg@w3.org
X-Mailing-List: <ietf-http-wg@w3.org> archive/latest/16179
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>

This sub-thread is getting mildly off-topic; if we start going down the rabbit hole of "what is an HTTP API?" (as dear as that subject is to my heart), I fear we'll never surface again.

Cheers,


On 25/01/2013, at 8:22 AM, Nico Williams <nico@cryptonector.com> wrote:

> On Thu, Jan 24, 2013 at 2:34 PM, Phillip Hallam-Baker <hallam@gmail.com> wrote:
>> On Thu, Jan 24, 2013 at 12:48 PM, Nico Williams <nico@cryptonector.com>
>> wrote:
>>> I've seen APIs that handle errors in JSON-encoded response bodies,
>>> including one that always returns success in HTTP but errors in the
>>> response body, which is kinda weird, but if none of the HTTP status
>>> codes make sense...  (that was the author's defense).
>> 
>> It makes perfect sense from a layering perspective.
>> 
>> In an RPC call I probably want HTTP errors to be strictly limited to
>> reporting network failures. 'entry not found' is a completely different
>> result from 'machine is down'
>> 
>> entry not found is arguably a successful transaction that returned an empty
>> list of results.
> 
> That was the author's defense.
> 
> I understand Julian's objection too, but it made no difference.
> 

--
Mark Nottingham   http://www.mnot.net/