Added better support for document update error responses