6

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

1

1 Answer 1

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.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.