HTTP 207 Multi-Status (WebDAV)


The HTTP 207 Multi-Status status code provides information about multiple resources, where multiple status codes might be appropriate for a single request. It is typically used in WebDAV environments.


The HTTP 207 response is used in scenarios where a single operation (such as a batch operation) affects multiple resources, and there is a need to convey information about each individual resource’s status.


Client Behavior:

  1. Send Batch Request: The client sends a request that affects multiple resources.
  2. Receive Response: The client receives the HTTP 207 status code, containing status information for each resource affected by the request.

Server Behavior:

  1. Process Batch Request: The server processes the request, affecting multiple resources.
  2. Send Response: The server sends a 207 Multi-Status response, providing the status for each affected resource.


  • WebDAV Batch Operations: In WebDAV, when performing operations that affect multiple resources, such as moving or copying a set of files.
  • API Bulk Actions: API endpoints that perform actions on multiple items, such as updating several records in a database.

Sequence Diagram

Illustrating the process of a request resulting in an HTTP 207 response:

    participant Client
    participant Server as Web Server

    Note over Client: Client sends a batch request
    Client->>Server: POST /batch-operation HTTP/1.1
    Note over Server: Server processes each item
    Server->>Client: HTTP/1.1 207 Multi-Status
    Server->>Client: Multi-Status response body

Curl Request and Response Example

Sending a batch request using Curl that might result in an HTTP 207 response:

curl -i -X POST -d "@batch-data.xml"
# Expected response: HTTP/1.1 207 Multi-Status

PHP cURL Request and Response Example

PHP script using cURL to send a batch request and handle an HTTP 207 response:

$ch = curl_init('');
curl_setopt($ch, CURLOPT_POST, true);
curl_setopt($ch, CURLOPT_POSTFIELDS, file_get_contents('batch-data.xml'));
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$response = curl_exec($ch);
if (curl_getinfo($ch, CURLINFO_HTTP_CODE) == 207) {
    echo "Multi-Status response received.";

Python Request and Response Example

Python script to send a batch request and process an HTTP 207 Multi-Status response:

import requests
with open('batch-data.xml', 'rb') as file:
    response ='', data=file)
if response.status_code == 207:
    print("Multi-Status response received")

Apache Configuration for HTTP 207 Multi-Status

Apache configuration to enable WebDAV features that support Multi-Status responses:

<VirtualHost *:80>
    # Enable WebDAV modules
    <Location "/webdav">
        Dav On
        # Other WebDAV configurations...

NGINX Configuration for HTTP 207 Multi-Status

NGINX configuration for WebDAV endpoints that might return HTTP 207 Multi-Status responses:

server {
    listen 80;
    location /webdav {
        # Ensure NGINX WebDAV module is enabled
        dav_methods PUT DELETE MKCOL COPY MOVE;
        # Additional WebDAV configurations...

HTTP 206 Partial Content HTTP 208 Already Reported (WebDAV)


Free Weekly


Join my weekly newsletter for the latest in tech! You'll get neat coding tricks, trend updates, career advice, SaaS reviews, crypto, bitcoin, and financial tips. All straight to your inbox, designed to keep you ahead.