- From: Willy Tarreau <w@1wt.eu>
- Date: Fri, 7 Aug 2015 09:23:14 +0200
- To: RFC Errata System <rfc-editor@rfc-editor.org>
- Cc: fielding@gbiv.com, julian.reschke@greenbytes.de, barryleiba@computer.org, mnot@mnot.net, aron.duby@gmail.com, ietf-http-wg@w3.org
On Thu, Aug 06, 2015 at 11:28:58PM -0700, RFC Errata System wrote: > The following errata report has been submitted for RFC7231, > "Hypertext Transfer Protocol (HTTP/1.1): Semantics and Content". > > -------------------------------------- > You may review the report below and at: > http://www.rfc-editor.org/errata_search.php?rfc=7231&eid=4436 > > -------------------------------------- > Type: Editorial > Reported by: Aron Duby <aron.duby@gmail.com> > > Section: 4.3.5 > > Original Text > ------------- > If a DELETE method is successfully applied, the origin server SHOULD > send a 202 (Accepted) status code if the action will likely succeed > but has not yet been enacted, a 204 (No Content) status code if the > action has been enacted and no further information is to be supplied, > or a 200 (OK) status code if the action has been enacted and the > response message includes a representation describing the status. > > Corrected Text > -------------- > If a DELETE method is successfully applied, the origin server SHOULD > send a 202 (Accepted) status code if the action will likely succeed > but has not yet been enacted; a 204 (No Content) status code if the > action has been enacted and no further information is to be supplied; > or a 200 (OK) status code if the action has been enacted and the > response message includes a representation describing the status. > > Notes > ----- > Using a semicolon creates a stronger delineation of the different options. If you are just quickly trying to parse what status to return if the delete hasn't happened yet and you quickly read "has not yet been enacted, a 204 (No Content)" you could incorrectly read that as return a 204. The semicolon makes it more obvious that "enacted" is the end of that thought and to scan backwards where as the comma in this instance requires knowing the structure of the rest of the paragraph. I disagree, the parsing looks bogus hence suspicious to me this way. Also there should be no "or" after a semi-colon. If you want to fix any possible ambiguity you may feel in the original text, then please write it as an enumerated list and then you can use the semi-colon to end each list item. It would then give something approximately like this : ------- If a DELETE method is successfully applied, the origin server SHOULD send : - a 202 (Accepted) status code if the action will likely succeed but has not yet been enacted ; - a 204 (No Content) status code if the action has been enacted and no further information is to be supplied ; - a 200 (OK) status code if the action has been enacted and the response message includes a representation describing the status. ------- Regards, Willy
Received on Friday, 7 August 2015 07:23:50 UTC