PUT with no data or malformed data returns error message