Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>The HTTP specification (<a href="http://www.w3.org/Protocols/rfc2616/rfc2616.html" rel="noreferrer">RFC 2616</a>) has a number of recommendations that are applicable. Here is my interpretation:</p> <ul> <li>HTTP status code <code>200 OK</code> for a successful PUT of an update to an existing resource. No response body needed. (Per <a href="http://www.w3.org/Protocols/rfc2616/rfc2616-sec9.html#sec9.6" rel="noreferrer">Section 9.6</a>, <code>204 No Content</code> is even more appropriate.)</li> <li>HTTP status code <code>201 Created</code> for a successful PUT of a new resource, with the most specific URI for the new resource returned in the Location header field and any other relevant URIs and metadata of the resource echoed in the response body. (<a href="http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html#sec10.2.2" rel="noreferrer">RFC 2616 Section 10.2.2</a>)</li> <li>HTTP status code <code>409 Conflict</code> for a PUT that is unsuccessful due to a 3<sup>rd</sup>-party modification, with a list of differences between the attempted update and the current resource in the response body. (<a href="http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html#sec10.4.10" rel="noreferrer">RFC 2616 Section 10.4.10</a>)</li> <li>HTTP status code <code>400 Bad Request</code> for an unsuccessful PUT, with natural-language text (such as English) in the response body that explains why the PUT failed. (<a href="http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html#sec10.4" rel="noreferrer">RFC 2616 Section 10.4</a>)</li> </ul>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload