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