Re: [apps-discuss] draft-nottingham-http-problem
Erik Wilde <dret@berkeley.edu> Wed, 06 March 2013 22:34 UTC
Return-Path: <dret@berkeley.edu>
X-Original-To: apps-discuss@ietfa.amsl.com
Delivered-To: apps-discuss@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 0680521F8659 for <apps-discuss@ietfa.amsl.com>; Wed, 6 Mar 2013 14:34:22 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -5.999
X-Spam-Level:
X-Spam-Status: No, score=-5.999 tagged_above=-999 required=5 tests=[BAYES_00=-2.599, J_CHICKENPOX_35=0.6, RCVD_IN_DNSWL_MED=-4]
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 wQzIubwaMmpO for <apps-discuss@ietfa.amsl.com>; Wed, 6 Mar 2013 14:34:21 -0800 (PST)
Received: from cm01fe.IST.Berkeley.EDU (cm01fe.IST.Berkeley.EDU [169.229.218.142]) by ietfa.amsl.com (Postfix) with ESMTP id 3879A21F861F for <apps-discuss@ietf.org>; Wed, 6 Mar 2013 14:34:21 -0800 (PST)
Received: from mobile-166-137-186-172.mycingular.net ([166.137.186.172] helo=dretpro.local) by cm01fe.ist.berkeley.edu with esmtpsa (TLSv1:AES256-SHA:256) (Exim 4.76) (auth plain:dret@berkeley.edu) (envelope-from <dret@berkeley.edu>) id 1UDMug-0008Ux-5b; Wed, 06 Mar 2013 14:34:20 -0800
Message-ID: <5137C467.90805@berkeley.edu>
Date: Wed, 06 Mar 2013 14:34:15 -0800
From: Erik Wilde <dret@berkeley.edu>
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.8; rv:17.0) Gecko/20130216 Thunderbird/17.0.3
MIME-Version: 1.0
To: Michael Stillwell <mjs@beebo.org>
References: <CAC5ZT9WndY1JHYWDuGAnd0=Rg6XiNMhtOoTPtUrnk+teZ33ebA@mail.gmail.com>
In-Reply-To: <CAC5ZT9WndY1JHYWDuGAnd0=Rg6XiNMhtOoTPtUrnk+teZ33ebA@mail.gmail.com>
Content-Type: text/plain; charset="UTF-8"; format="flowed"
Content-Transfer-Encoding: 7bit
Cc: mnot@mnot.net, Dmitry Limonov <dmitry.limonov@emc.com>, erik.wilde@emc.com, apps-discuss@ietf.org
Subject: Re: [apps-discuss] draft-nottingham-http-problem
X-BeenThere: apps-discuss@ietf.org
X-Mailman-Version: 2.1.12
Precedence: list
List-Id: General discussion of application-layer protocols <apps-discuss.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/apps-discuss>, <mailto:apps-discuss-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/apps-discuss>
List-Post: <mailto:apps-discuss@ietf.org>
List-Help: <mailto:apps-discuss-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/apps-discuss>, <mailto:apps-discuss-request@ietf.org?subject=subscribe>
X-List-Received-Date: Wed, 06 Mar 2013 22:34:22 -0000
hello michael. On 2013-03-06 14:07 , Michael Stillwell wrote: > Some questions/thoughts on the "Problem Details for HTTP APIs" draft: > http://tools.ietf.org/html/draft-nottingham-json-home-02 > The existing approach to handling problems seems to be for clients to > assume that the combination of a URL (or just domain), a status code, > and a media type determines the type of the body. So clients will > interpret { flickr.com, 4xx, application/json } in one way, and { > twitter.com, 4xx, application/json } in another. why do you assume this is the case? HTTP status codes are defined by HTTP, and they always mean the same for all HTTP interactions, regardless of the domain or anything else. if you get a 404, then it means what http://tools.ietf.org/html/rfc2616#section-10.4.5 says it means, not less and not more. > The draft seems to suggest in effect moving the domain name into the > body of the document itself to form a sort of namespace (i.e. as the > problemType key), so that error types can be shared between different > services. But I'm wondering just how much sharing is actually > possible in practice. (This question also applies to the similar > vnd.error proposal https://github.com/blongden/vnd.error.) the idea here is that services have the opportunity to provide supplemental information *beyond* the HTTP status code. so yes, this supplemental information is now runtime information (i.e., not part of HTTP's standard status codes). whether it is *shared* is a different issue; it would also be perfectly fine if services always define their own problemType URIs, simply for the purpose of providing some information that goes beyond what they can communicate through HTTP's standard status codes. sharing of problemType URIs is optional, but it sounds like something that may make a lot of sense. for example, when some software is deployed, it may choose to always use canonical URIs when sending HTTP problem details. clients now could use those problemType URIs to respond to these specific errors in a more specific way than to just the vanilla HTTP response. > An example from the draft is an "out-of-credit" error, but thinking > through the various sorts of "out-of-credit" messages I actually > receive, and how I go about remedying the problem (from phone > companies, hosting providers, public transport providers), I can't > think of very much they share, and certainly very little that would be > able to be acted upon in an automated way that did not require > knowledge of the service that generated them. you have a point here, but you could also simply consider the case of some specific software product always using the same problemType URI for its "out-of-credit" error, and then at least all services based on that specific software product would share the same problemType URI. does this explanation sounds reasonbale to you? cheers, dret. -- erik wilde | mailto:dret@berkeley.edu - tel:+1-510-2061079 | | UC Berkeley - School of Information (ISchool) | | http://dret.net/netdret http://twitter.com/dret |
- [apps-discuss] draft-nottingham-http-problem Michael Stillwell
- Re: [apps-discuss] draft-nottingham-http-problem Erik Wilde
- Re: [apps-discuss] draft-nottingham-http-problem Michael Stillwell
- Re: [apps-discuss] draft-nottingham-http-problem Mark Nottingham
- Re: [apps-discuss] draft-nottingham-http-problem Michael Stillwell
- [apps-discuss] draft-nottingham-http-problem Ray Polk
- Re: [apps-discuss] draft-nottingham-http-problem Erik Wilde
- Re: [apps-discuss] draft-nottingham-http-problem Ray Polk
- Re: [apps-discuss] draft-nottingham-http-problem Erik Wilde