What is the purpose of the HTTP response status code 226?
Asked Answered
S

1

6

Does someone ever use HttpStatus.IM_USED (226 - IM Used), and in which case or situation?

Starobin answered 20/11, 2018 at 20:17 Comment(1)
The RFC for this status code does a decent job of illustrating what purpose it actually serves.Pralltriller
L
5

This site does a much better job of explaining the purpose of this response status code. Basically, there is a feature called Delta encoding in HTTP that an HTTP server might support. If so, then it will be possible for the client to request changes to a resource that it has already cached instead of requesting the whole resource again.

To request the feature, the client request must have an A-IM header specifying what Instance Manipulation types it supports, the values of which are listed. If the server supports this feature, it will respond with the 226 status code and the body of the diff. Otherwise, it will respond with status 200 and the whole resource.

Locomotion answered 22/2, 2020 at 15:57 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.