Fixe to respond with error on bad document post.