How do you catch Server Error or 404 page not found, when you use $.get or $.post ?
For example:
$.post(\"/myhandler\", { value: 1 }, function(data)
Use $.ajax instead and use the error callback.
$.ajax
error
http://api.jquery.com/jQuery.ajax/