This is related to my question on how to handle errors from jQuery AJAX calls. Several responses suggested that I use the \"error\" callback to display any errors from a jQ
I think that event is raised for any response that has a response code other than 200. I can't find proof of this in the docs though.
To do this from code (works in Webforms):
throw new HttpException(500, "Error message");