DataTables warning: table id=table - Ajax error. For more information about this error, please see http://datatables.net/tn/7 server site code example
Example: DataTables warning: table id=dataTable - Ajax error
This can be done using for no more error:
$.fn.dataTable.ext.errMode = 'throw';