Skip to content

Instantly share code, notes, and snippets.

@williankeller
Created July 2, 2015 19:05
Show Gist options
  • Save williankeller/02d3a49d9a2567d8b72d to your computer and use it in GitHub Desktop.
Save williankeller/02d3a49d9a2567d8b72d to your computer and use it in GitHub Desktop.
error: function (_jqxhr, text, error) {
switch (_jqxhr.status) {
case 404:
case 500:
console.log("Erro: " + error + " - " + text);
console.log(_jqxhr);
break;
default:
console.log(_jqxhr);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment