W3C home > Mailing lists > Public > ietf-http-wg@w3.org > October to December 2007

209 No Content vs. application/empty

From: James M Snell <jasnell@gmail.com>
Date: Mon, 01 Oct 2007 08:00:13 -0700
Message-ID: <47010B7D.6050304@gmail.com>
To: HTTP Working Group <ietf-http-wg@w3.org>
Mark Nottingham has suggested that rather than inventing a new Accept
header and 209 No Content response type, it might be better to create a
new media type that indicates the absense of content and use Accept to
indicate the preference.  For instance:

In the request:

  Accept: application/empty, application/atom+xml;q=0.5

In the response:

  HTTP 200 OK
  Content-Type: application/empty

Seems to address the problem quite nicely.  I still think that there is
benefit to the Prefer header but in this particular case, Marks
suggestion seems to be a whole lot easier :-).

- James

Received on Monday, 1 October 2007 15:00:46 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 1 March 2016 11:10:43 UTC