Skip to content

Instantly share code, notes, and snippets.

@ryana ryana/errors.js
Last active Sep 30, 2015

Embed
What would you like to do?
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
You can’t perform that action at this time.