I am making an ajax call to change an object. The call does not have to return anything. Only the code http 200 (OK) or 500 (error). I'm using the following code in the action but I do not know if it's the best:
return new EmptyResult();
What is the best way to do an Action that does not return data?