Although you can change the default error response in JQuery Mobile doing something like:
$(document).bind("mobileinit", function() {
$.mobile.pageLoadErrorMessage = 'This is my custom error.';
});
I would like to use the errors I am returning from the actual application, which allows me to set different messages depending on the error.
For example, with a Forbidden error I would want to display something that correlates to that issue.
I have the flexibility to return the responses as JSON if that would be more palatable for JQuery, I am just not sure how to get the pageLoadErrorMessage to consume that.
You can use
pageloadfailedevent for that.jsFiddle