fixed ajax post request
removed content from response

REST API should know the result of the request from the headers