I have implemented an Ajax request on my website, and I am calling the endpoint from a webpage. It always returns 200 OK, but jQuery execut
You just have to remove dataType: 'json' from your header if your implemented Web service method is void.
dataType: 'json'
In this case, the Ajax call don't expect to have a JSON return datatype.