Skip to content

207 Multi-Status — Meaning, Common Causes & How to Fix

207 2xx Success RFC 4918

207 Multi-Status means: A WebDAV Multi-Status response: the body is an XML document listing individual statuses for multiple resources affected by one request. A single PROPFIND or PROPPATCH can succeed on some paths and fail on others, and 207 reports each outcome. Success 2xx codes confirm the request was received, understood and accepted. The family distinguishes what kind of success happened — content returned, resource created, work queued, or nothing to return — and choosing the precise code is part of a well-designed API contract that clients and caches can rely on. In practice you will meet 207 when a webdav propfind queries properties across a collection; a proppatch updates properties on several resources with mixed results; caldav/carddav bulk operations report per-item outcomes. On the client side, parse the multistatus XML and inspect each response element's status; the top-level 207 does not mean every item succeeded. On the server side, return one status per affected resource inside the multistatus body; use 207 whenever outcomes differ across the collection.

Advertisement
Ad slot · ref-top

When 207 happens

  • A WebDAV PROPFIND queries properties across a collection
  • A PROPPATCH updates properties on several resources with mixed results
  • CalDAV/CardDAV bulk operations report per-item outcomes

How to fix it

On the client

Parse the multistatus XML and inspect each response element's status; the top-level 207 does not mean every item succeeded.

On the server

Return one status per affected resource inside the multistatus body; use 207 whenever outcomes differ across the collection.

Should you retry?

Success — nothing to retry.

Debugging steps

When 207 appears unexpectedly, start by capturing the full exchange: 'curl -i' or the browser DevTools Network tab shows the exact status line and response headers, which often carry the real explanation. Success codes rarely need debugging, but verify the body semantics match the code — a 200 wrapping an error payload is an API design bug, not a transport problem. For this code specifically, check whether the most common trigger applies to your situation: a webdav propfind queries properties across a collection. Compare your exchange against the raw HTTP example above. If you operate the server, correlate the timestamp with application and proxy logs using the request id; if you are the client, verify the request shape against the API documentation before changing anything or retrying.

Notes & gotchas

The top-level 207 says nothing about individual outcomes: a PROPFIND can return 207 while every item inside failed with 403 — always parse the multistatus body.

Examples

Raw HTTP
HTTP/1.1 207 Multi-Status
Content-Type: application/xml
Content-Length: 157

<?xml version="1.0"?>
<multistatus xmlns="DAV:">
  <response><href>/doc</href><propstat><status>HTTP/1.1 200 OK</status></propstat></response>
</multistatus>
curl
curl -i https://api.example.com/v1/resource   # observe the 207 response and its headers
JavaScript (fetch)
const res = await fetch("https://api.example.com/v1/resource");
if (res.ok) {
  const data = await res.json(); // 207 Multi-Status
  return data;
}
Python (requests)
import requests

res = requests.get("https://api.example.com/v1/resource", timeout=10)
res.raise_for_status()
data = res.json()  # 207 Multi-Status

Frequently asked questions

Is 207 used outside WebDAV?

Occasionally by APIs that borrow the pattern, but standard REST APIs prefer per-item results in a 200 JSON body.

Does 207 mean partial failure?

Not necessarily — it means 'multiple statuses inside'. Every item could be 200, or some could be 403/404/423; you must read the body.

Which 2xx code should my API return?

200 for a normal result, 201 when a resource was created (with Location), 202 when work is queued, 204 when there is nothing to return. Precision here makes clients, caches and monitors behave correctly.

Can I treat any 2xx as interchangeable success?

For 'did it work' yes, but the distinctions matter operationally: 201 means a resource exists, 202 means work is still pending, 204 means there is no body to parse. Code that ignores them breaks.

Advertisement
Ad slot · ref-in-article

Try the JSON Validator

Check JSON syntax and locate errors by line and column.

Open tool →