Last active
September 30, 2015 16:30
-
-
Save ryana/b126705fb3c401fb7216 to your computer and use it in GitHub Desktop.
Popup Ramen error question on AJAX error
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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