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.
Mô tả
The request succeeded. The meaning depends on the HTTP method: GET returns the resource, POST reports the action result, HEAD returns headers only.
Khi bạn thấy mã này
The most common HTTP response — indicates the request was processed successfully.
Cách khắc phục
No fix needed. The request succeeded as expected.
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
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.
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.
You encounter 200 when the most common HTTP response — indicates the request was processed successfully.
You encounter 226 when when using delta encoding to reduce bandwidth.
Khi nào dùng cái nào
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.