HTTP

HTTP 207 Multi-Status vs 226 IM Used

Both HTTP 207 (Multi-Status) and 226 (IM Used) belong to the 2xx Success category. 207 indicates that the response body contains status information for multiple resources, in situations where multiple status codes might be appropriate (WebDAV). Meanwhile, 226 means that the server has fulfilled a GET request for the resource, and the response is a representation of the result of one or more instance-manipulations.

Mô tả

The response body contains status information for multiple resources, in situations where multiple status codes might be appropriate (WebDAV).

Khi bạn thấy mã này

In WebDAV operations that affect multiple resources simultaneously.

Cách khắc phục

Parse the XML body to check the status of each individual resource.

Mô tả

The server has fulfilled a GET request for the resource, and the response is a representation of the result of one or more instance-manipulations.

Khi bạn thấy mã này

When using delta encoding to reduce bandwidth.

Cách khắc phục

Rarely encountered. The response uses Instance Manipulations (IM) as specified.

Sự khác biệt chính

1.

HTTP 207: The response body contains status information for multiple resources, in situations where multiple status codes might be appropriate (WebDAV).

2.

HTTP 226: The server has fulfilled a GET request for the resource, and the response is a representation of the result of one or more instance-manipulations.

3.

You encounter 207 when in WebDAV operations that affect multiple resources simultaneously.

4.

You encounter 226 when when using delta encoding to reduce bandwidth.

Khi nào dùng cái nào

For 207 (Multi-Status): Parse the XML body to check the status of each individual resource. For 226 (IM Used): Rarely encountered. The response uses Instance Manipulations (IM) as specified.

Tìm hiểu thêm