xxxxxxxxxx
error: function (data, ajaxOptions, thrownError) {
var status = data.status;
if (data.status === 422) {
$.each(data.responseJSON.errors, function (key, value) {
$('#msg').append('<div>' + value + '</div>');
});
}
if (status === 403 || status === 500) {
$('#msg').text("Not Auth");
}
}