Re: [OAUTH-WG] Returning HTTP 200 on Error for JSONP

Mark Nottingham <mnot@mnot.net> Wed, 18 August 2010 06:36 UTC

Return-Path: <mnot@mnot.net>
X-Original-To: oauth@core3.amsl.com
Delivered-To: oauth@core3.amsl.com
Received: from localhost (localhost [127.0.0.1]) by core3.amsl.com (Postfix) with ESMTP id A2FEF3A6A15 for <oauth@core3.amsl.com>; Tue, 17 Aug 2010 23:36:38 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -104.936
X-Spam-Level:
X-Spam-Status: No, score=-104.936 tagged_above=-999 required=5 tests=[AWL=-2.337, BAYES_00=-2.599, USER_IN_WHITELIST=-100]
Received: from mail.ietf.org ([64.170.98.32]) by localhost (core3.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id FVAvjsoYHg1p for <oauth@core3.amsl.com>; Tue, 17 Aug 2010 23:36:31 -0700 (PDT)
Received: from mxout-08.mxes.net (mxout-08.mxes.net [216.86.168.183]) by core3.amsl.com (Postfix) with ESMTP id C69AB3A6A1C for <oauth@ietf.org>; Tue, 17 Aug 2010 23:36:17 -0700 (PDT)
Received: from chancetrain-lm.mnot.net (unknown [118.209.248.41]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) by smtp.mxes.net (Postfix) with ESMTPSA id DEAD2509DB; Wed, 18 Aug 2010 02:36:37 -0400 (EDT)
Mime-Version: 1.0 (Apple Message framework v1081)
Content-Type: text/plain; charset="us-ascii"
From: Mark Nottingham <mnot@mnot.net>
In-Reply-To: <AANLkTikRQdRMwA0HQTrZHpt+tqwVM_MoUNyDWS83i-rq@mail.gmail.com>
Date: Wed, 18 Aug 2010 16:36:34 +1000
Content-Transfer-Encoding: quoted-printable
Message-Id: <DB6A95FD-C218-4B46-90AB-B444BDBC407B@mnot.net>
References: <1643FCF1-841F-41FF-B8A8-43269320CFA8@facebook.com> <D2742806-9180-4A5B-98D5-BFD68AF74EEA@facebook.com> <AANLkTikvz1FNvHN0W4TYyUn=0Nq_At2c+x793XTdwyLm@mail.gmail.com> <AANLkTinBqMvmKuoUq7Fy7XmJue5VEFYcw7qoca=0cWFs@mail.gmail.com> <4C69B719.3060303@lodderstedt.net> <DFB12E92-0E4D-46C2-8103-C74BAE6F65F9@facebook.com> <4C6A25F7.8060301@lodderstedt.net> <AANLkTinHehcMCsmxJt0hvLbLrLC5ERrjG38GDxaAMsiZ@mail.gmail.com> <241FE353-C52A-4505-8620-DEE9CF9F940E@lodderstedt.net> <FC1E2149-F8FF-4010-AAB8-273F8E2DC498@facebook.com> <AANLkTinz4r3AwTva1fu0okobC70Ht1gZei5wjN2eQW3H@mail.gmail.com> <AANLkTinSCrXs1LaLY1ByNFi_Ec9WOr2ETQdpRXYfm+ra@mail.gmail.com> <AANLkTinriRSq9_z4M-Brr59pyhJQm8aGaMnh6dsmmjqH@mail.gmail.com> <AANLkTi=vGVVzzaQ8AP+bN=YU6_EXavc_M9Xr-sFLvL76@mail.gmail.com> <AANLkTikRQdRMwA0HQTrZHpt+tqwVM_MoUNyDWS83i-rq@mail.gmail.com>
To: Brian Eaton <beaton@google.com>
X-Mailer: Apple Mail (2.1081)
Cc: OAuth WG <oauth@ietf.org>
Subject: Re: [OAUTH-WG] Returning HTTP 200 on Error for JSONP
X-BeenThere: oauth@ietf.org
X-Mailman-Version: 2.1.9
Precedence: list
List-Id: OAUTH WG <oauth.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/listinfo/oauth>, <mailto:oauth-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/oauth>
List-Post: <mailto:oauth@ietf.org>
List-Help: <mailto:oauth-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/oauth>, <mailto:oauth-request@ietf.org?subject=subscribe>
X-List-Received-Date: Wed, 18 Aug 2010 06:36:38 -0000

On 18/08/2010, at 3:57 PM, Brian Eaton wrote:

> On Tue, Aug 17, 2010 at 7:33 PM, John Panzer <jpanzer@google.com> wrote:
>> Is there any legit reason other than jsonp specifically?
> 
> Protected resource authors are slack and are not going to read the
> spec.  That might not be a great reason, but it's not a bad one
> either.
> 
> The other reason people get funny with these status codes has to do
> with browser behavior.  Sometimes browsers react in funny ways to
> funny HTTP status codes.  To be on the safe side, developers tend to
> return an HTTP 200 with whatever they want the user to see.

Can you give concrete examples, please? What browsers do what exactly, under what circumstances?


> The last reason is that servers fail, and instead of returning the
> error they meant to return they serve up a bit of static HTML that
> says, more or less, "Whoa.  That sucked."
> _______________________________________________
> OAuth mailing list
> OAuth@ietf.org
> https://www.ietf.org/mailman/listinfo/oauth


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