📊
207
Multi-Status

Example HTTP Response

HTTP Response
HTTP/1.1 207 Multi-Status
Content-Type: application/xml

<?xml version="1.0"?>
<multistatus xmlns="DAV:">...</multistatus>
Common Causes
  • WebDAV batch operations
  • Multiple resources affected in one request
  • Bulk API operations with mixed results
Technical Details

What does this mean?

It's complicated! You asked about multiple things, so here's a status report on each one. Like getting grades for all your classes at once.

Technical Definition

Conveys information about multiple resources, for situations where multiple status codes might be appropriate.

RFC Says

"The 207 (Multi-Status) status code provides status for multiple independent operations. The message body contains a single XML element called 'multistatus' that contains a separate response element for each resource."

Plain English:

Used primarily in WebDAV when you perform operations on multiple resources at once (like copying or deleting multiple files). The response contains individual status codes for each resource - some might succeed while others fail.

Code Snippets

Ready-to-use code for returning this HTTP status in your application:

Node.js
// Express.js
app.get('/example', (req, res) => {
  res.status(207).json({
    error: 'Multi-Status',
    message: 'Your error message here'
  });
});

// Native HTTP
const http = require('http');

http.createServer((req, res) => {
  res.writeHead(207, { 'Content-Type': 'application/json' });
  res.end(JSON.stringify({
    error: 'Multi-Status',
    message: 'Your error message here'
  }));
}).listen(3000);