← Back to Chapters

HTTP 207 – Multi-Status (WebDAV)

? HTTP 207 – Multi-Status (WebDAV)

? Quick Overview

The 207 Multi-Status HTTP status code is used in WebDAV to return multiple independent status codes for different resources within a single HTTP response. Each resource’s status is represented in an XML body.

? Key Concepts

  • Part of the WebDAV extension to HTTP
  • Used when multiple resources are processed in one request
  • Each resource has its own status code
  • Response body is typically XML

? Syntax / Theory

A 207 response does not indicate overall success or failure. Instead, it provides detailed per-resource results so clients can handle each resource individually.

? Code Example(s)

? View Code Example
// Example WebDAV PROPFIND request
PROPFIND /webdav/ HTTP/1.1
Host: example.com
Depth: 1
? View Code Example
// 207 Multi-Status response with per-resource results
HTTP/1.1 207 Multi-Status
Content-Type: application/xml

? Live Output / Explanation

The server returns a single response containing multiple status entries. Each entry corresponds to a resource and includes its own HTTP status code.

?️ Interactive / Visual Explanation

Imagine performing one operation on several files at once. Some succeed, some fail — the server reports all outcomes together using 207 Multi-Status.

Simulator: Click the button to upload 3 files to the server.

? report.pdf Pending
?️ logo.png Pending
? notes.txt Pending
 
 

? Use Cases

  • WebDAV directory listings
  • Batch operations on multiple files
  • Collaborative document management systems

✅ Tips & Best Practices

  • Always parse the XML response body carefully
  • Do not rely only on the top-level HTTP status
  • Handle each resource status independently

? Try It Yourself

  • Send a PROPFIND request to a WebDAV server
  • Inspect the XML multi-status response
  • Practice extracting per-resource status codes