207

Multi-Status

Overview

207 Multi-Status is a WebDAV response that reports individual statuses for several resources in one XML body when a single request affects many of them. The overall request succeeded with 200, but each inner item may have a different outcome.

For example, a PROPFIND over a whole folder or a batch delete may return 200 for some items and 423 Locked or 404 for others, each reported separately.

When it happens

Request / Response example

Request
PROPFIND /collection/ HTTP/1.1
Host: dav.example.com
Depth: 1
Content-Type: application/xml

<propfind><prop><getlastmodified/></prop></propfind>
Response
HTTP/1.1 207 Multi-Status
Content-Type: application/xml

<multistatus xmlns="DAV:">
  <response><href>/collection/a.txt</href><status>HTTP/1.1 200 OK</status></response>
  <response><href>/collection/locked.txt</href><status>HTTP/1.1 423 Locked</status></response>
</multistatus>

In code

HTTP/1.1 207 Multi-Status
Content-Type: application/xml; charset=utf-8

<multistatus xmlns="DAV:">...</multistatus>

Notes

Related status codes

Related headers

Specification