HTTP

HTTP 200 OK vs 226 IM Used

Both HTTP 200 (OK) and 226 (IM Used) belong to the 2xx Success category. 200 indicates that the request succeeded. The meaning depends on the HTTP method: GET returns the resource, POST reports the action result, HEAD returns headers only. 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.

描述

The request succeeded. The meaning depends on the HTTP method: GET returns the resource, POST reports the action result, HEAD returns headers only.

何时出现

The most common HTTP response — indicates the request was processed successfully.

如何修复

No fix needed. The request succeeded as expected.

描述

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.

何时出现

When using delta encoding to reduce bandwidth.

如何修复

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

主要区别

1.

HTTP 200: The request succeeded. The meaning depends on the HTTP method: GET returns the resource, POST reports the action result, HEAD returns headers only.

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 200 when the most common HTTP response — indicates the request was processed successfully.

4.

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

何时使用哪个

For 200 (OK): No fix needed. The request succeeded as expected. For 226 (IM Used): Rarely encountered. The response uses Instance Manipulations (IM) as specified.

了解更多