HTTP

HTTP 205 Reset Content vs 226 IM Used

Both HTTP 205 (Reset Content) and 226 (IM Used) belong to the 2xx Success category. 205 indicates that the server fulfilled the request and the client should reset the document view (e.g., clear a form). 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 server fulfilled the request and the client should reset the document view (e.g., clear a form).

เมื่อคุณพบเห็น

After form submissions where the server wants the client to reset the form for new input.

วิธีแก้ไข

The client should clear the form or reset the view. Rarely used in practice.

คำอธิบาย

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 205: The server fulfilled the request and the client should reset the document view (e.g., clear a form).

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 205 when after form submissions where the server wants the client to reset the form for new input.

4.

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

ควรใช้อันไหนเมื่อไร

For 205 (Reset Content): The client should clear the form or reset the view. Rarely used in practice. For 226 (IM Used): Rarely encountered. The response uses Instance Manipulations (IM) as specified.

เรียนรู้เพิ่มเติม