On Dec 17, 9:57 am, MorningZ <morni...@gmail.com> wrote:
> "Is it a non-200 status code"
>
> I can't say it's 100% of the time, but in my code it seems to be the
> case

Ding, ding, ding. Looks like that's it. In my PHP script, this is what
I did to test...

try {
   throw new Exception ( 'Something I made up' );
}
catch ( Exception $e ) {
   header ( 'HTTP/1.0 500 Internal Server Error', true, '500' );
   echo $e->getMessage();
}

My error callback picks it up nicely and reports the message in
XMLHttpRequest.responseText.

Thanks again.

Reply via email to