error: function(jqXHR, exception) { if (jqXHR.status === 0) { $('#{{$ID}}').html('Not connect.\n Verify Network.'); } else if (jqXHR.status == 404) { $('#{{$ID}}').html('Requested page not found. [404]'); } else if (jqXHR.status == 500) { $('#{{$ID}}').html('Internal Server Error [500].'); } else if (exception === 'parsererror') { $('#{{$ID}}').html('Requested JSON parse failed.'); } else if (exception === 'timeout') { $('#{{$ID}}').html('Time out error.'); } else if (exception === 'abort') { $('#{{$ID}}').html('Ajax request aborted.'); } else { $('#{{$ID}}').html('Uncaught Error.\n' + jqXHR.responseText + ''); } }