added content-type; droped response in case of invalid data