We've written a RESTful server API. For whatever reason, we made the decision that for DELETEs, we would like to return a 204 (No Content) status code, with an empty response. I'm trying to call this from jQuery, passing in a success handler and setting the verb to DELETE:
jQuery.ajax({
type:'DELETE',
url: url,
success: callback,
});
The server returns a 204, but the success handler is never called. Is there a way I can configure jQuery to allow 204s to fire the success handler?