basho/riak_cs — pull request #596 by kellymclaughlin (2013-07-17 17:35:34+00:00)
Title: Return HTTP 400 if content-md5 does not match

On PUT, Riak currently will not return HTTP 400 if the Content-MD5 header and the MD5 of the body do not match. S3 [does](http://docs.aws.amazon.com/AmazonS3/latest/API/RESTObjectPUT.html). It does return the correct MD5 as the ETAG, and some clients do recognize this and throw and exception. Returning HTTP 400 is easy. Making sure we properly garbage collect the 'bad' version is a bit trickier.