title: callback handler for server side datatables v 1.10
body: <p>I am using datatables version 1.10.0 for search capability.</p>
  
  <p>I want to know for server side processing how do i manipulate the response.
  For example I have a json response that returns with the records to display and also a status. </p>
  
  <p>My requirement is, if there is validation failure on the server side, I do not want to draw the table and instead, render error messages on screen. Otherwise draw the table. </p>
  
  <p>Simple Example below:</p>
  
  <pre><code> $('#result').dataTable( {
          "processing": true,
          "serverSide": true,
  
          "ajax": {
              "url": "search",
              "type": "POST",
              //"dataSrc": "resultList",
              "dataSrc": function ( json ) {
          if (json.responseStatus.value == 'Validation Failure') {
      //show error messages on screen
  //prevent redraw
           } else {
  
      //draw the table with the  resultList
      }
                }
          "columns": [
                      { "data": "referenceNumber"},
                      { "data": "fileName" },
                      { "data": "documentType" },
                      { "data": "uploadType" },
                      { "data": "createdBy" },
                      { "data": "memberName" },
                      { "data": "dateOfBirthStr"},
                      { "data": "createdDateStr" },
                      { "data": "comment" },
                      { "data": "status" }
                  ]
      } );
  </code></pre>
  
  <p>UPDATE:
  On the server side I return 403:</p>
  
  <p>return new ResponseEntity(searchUploadResponse, HttpStatus.FORBIDDEN);</p>
  
  <p>On the client side:</p>
  
  <pre><code>$('#result').dataTable( {
      "processing": true,
      "serverSide": true,
      "ajax": {
          "url": "search",
          "type": "POST",
          "dataSrc": "resultList",
                   error: function (jqXHR, textStatus, errorThrown) {
                         //handle errorThrown in here
                       alert("error" + jqXHR  + " : " + textStatus + " : " + errorThrown);
                   }
      } ,
  </code></pre>
  
  <p>The result is i can show my error messages.
  datatables blocks access to the table with the "processing" div.</p>