207 Multi-Status

207 Multi-Status

The 207 Multi-Status HTTP status code is returned by the server in cases where it's relevant to relay information about multiple resources.

You can Check Your URLs HTTP Code for FREE

Imagine you send a request to a server, and instead of getting a simple "success" or "failure" message back, you receive a detailed report containing information about multiple resources.

The 207 Multi-Status code is used to bundle all these responses together and send them back to you. It's like receiving a summary of various updates in a single package, making it easier to handle multiple changes at once.

When you make a complex HTTP request that involves multiple tasks or resources, the server might respond with the 207 Multi-Status code.

This code is like a report card, telling you which tasks were successful and which ones encountered issues.

The response contains an XML summary with details about each subtask, so you can easily understand the status of each resource involved in the request. It's a handy feature used in WebDAV for handling diverse tasks efficiently.

In this example, let's say you are sending XML data to a server. The server processes the data and interacts with three separate resources to complete the task. Afterward, the server sends back a list with the results of these interactions.

For the first two resources, everything goes smoothly. The first resource doesn't need to send any specific message back, while the second resource indicates that it successfully created something. However, the third resource encounters an issue – it's currently locked.

Now, it's up to you as the client to interpret this information and decide how to proceed based on whether you consider this overall process a success or not.

Request
POST /signup HTTP/1.1 Host: www.example.re Content-Type: application/xml Content-Length: 70 John Muller UK

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

http://www.example.com/signup/resource_1 HTTP/1.1 204 No content
http://www.example.com/signup/resource_2 HTTP/1.1 201 Created
http://www.example.com/signup/resource_3 HTTP/1.1 423 Locked

The 207 Multi-Status status code is used by servers to provide information about multiple resources when a single HTTP request involves multiple tasks or resources.

It is like a report card that shows the results of different tasks performed during the request, indicating which ones were successful and which ones encountered errors, allowing the client to handle them accordingly.

Related articles

999 Request Denied

999 Request Denied The 999 HTTP response status code is...

599 Network Connect Timeout Error

599 Network Connect Timeout Error The 599 HTTP response status...

598 Network read timeout error

598 Network read timeout error The 598 HTTP response status...

561 Unauthorized

561 Unauthorized The 561 HTTP response status code means there...

530 Site Frozen

530 Site Frozen The 530 HTTP response status code is...

999 Request Denied

561 Unauthorized

530 Site Frozen