Skip to content

Instantly share code, notes, and snippets.

@ryana
Last active September 30, 2015 16:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ryana/b126705fb3c401fb7216 to your computer and use it in GitHub Desktop.
Save ryana/b126705fb3c401fb7216 to your computer and use it in GitHub Desktop.
Popup Ramen error question on AJAX error
// Ask Ramen 500 question on AJAX error
$(document).ajaxComplete(function(e, xhr, opts) {
// You may want to also catch 401, 403, 406, 422, etc....
// Talk with your developers to figure out which status codes
// need to be monitored.
if (xhr.status > 499 && xhr.status < 510) {
if (Ramen) {
Ramen.event("560ad1f87765626520281000");
}
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment