If the Etag
of the resource /people/alessandro-nadalin
is the same of the server’s one, the PUT updates the user.
But if they don’t match, the server responds with a 412 Precondition Failed
status code, which means that the resource is out of date.
Read full article from Don't rape HTTP: If-(None-)Match & the 412 HTTP status code — Alessandro Nadalin, forward-thinking technologist
No comments:
Post a Comment