Added logging of payload in case of an error and put method.
Fixed specification call to put for count.