Skip to content

Instantly share code, notes, and snippets.

@derveloper
Created July 8, 2011 10:43
Show Gist options
  • Save derveloper/1071563 to your computer and use it in GitHub Desktop.
Save derveloper/1071563 to your computer and use it in GitHub Desktop.
$.ajax({
url: authurl,
async: false,
type: "GET",
dataType: "json",
statusCode: {
503: function(e) {
console.log(e);
if(typeof errorCallback === "function") {
errorCallback(e);
}
}
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment