I have an ext form that I am submitting to my server. Due to a bug in my server code, an exception is being thrown and my web server's Error 500 page is being returned. The problem with this is my ext form is expecting a JSON response, but the Error 500 page is HTML, thus causing Ext to fail being unable to parse the '<' character.
How can I handle this situation? I want to display a message to the user that an error occurred, but this Ext exception is causing my failure handler not being call, as well as the form's waitMsg to not go away.