I want to be able to get a PHP script called via AJAX to return with an error code that the jQuery AJAX handler error:
will handle. I don\'t want to use a JSON
If you want to trigger the AJAX error handler, just pass back something other than a 200! Try this:
Just remember to do two things:
This should be the clean solution you are going for.