order instructions are received (i.e., from top to bottom).
Instructions MUST either all be executed or none executed. Thus if
any error occurs during processing all executed instructions MUST be
undone and a proper error result returned. Instruction processing
details can be found in the definition of the set and remove
instructions in section 12.13.
8.2.1 Status Codes for use with 207 (Multi-Status)
The following are examples of response codes one would expect to be
used in a 207 (Multi-Status) response for this method. Note,
however, that unless explicitly prohibited any 2/3/4/5xx series
response code may be used in a 207 (Multi-Status) response.
200 (OK) - The command succeeded. As there can be a mixture of sets
and removes in a body, a 201 (Created) seems inappropriate.
403 (Forbidden) - The client, for reasons the server chooses not to
specify, cannot alter one of the properties.
409 (Conflict) - The client has provided a value whose semantics are
not appropriate for the property. This includes trying to set read-
only properties.
423 (Locked) - The specified resource is locked and the client either
is not a lock owner or the lock type requires a lock token to be
submitted and the client did not submit it.
507 (Insufficient Storage) - The server did not have sufficient space
to record the property.
RFC 2518 WEBDAV February 1999
8.2.2 Example - PROPPATCH
>>Request
PROPPATCH /bar.html HTTP/1.1
Host: www.foo.com
Content-Type: text/xml; charset="utf-8"
Content-Length: xxxx
<?xml version="1.0" encoding="utf-8" ?>
<D:propertyupdate xmlns:D="DAV:"
xmlns:Z="http://www.w3.com/standards/z39.50/">
Jim Whitehead
Roy Fielding
<Z:Copyright-Owner/>
</D:propertyupdate>
>>Response
HTTP/1.1 207 Multi-Status
Content-Type: text/xml; charset="utf-8"
Content-Length: xxxx
<?xml version="1.0" encoding="utf-8" ?>
<D:multistatus xmlns:D="DAV:"
xmlns:Z="http://www.w3.com/standards/z39.50">
http://www.foo.com/bar.html
HTTP/1.1 424 Failed Dependency
</D:propstat>
<Z:Copyright-Owner/>
HTTP/1.1 409 Conflict
</D:propstat>
<D:responsedescription> Copyright Owner can not be deleted or
altered.</D:responsedescription>
</D:response>
</D:multistatus>
RFC 2518 WEBDAV February 1999
In this example, the client requests the server to set the value of
the http://www.w3.com/standards/z39.50/Authors property, and to
remove the property http://www.w3.com/standards/z39.50/Copyright-
=18= |