XMLHttpRequest (XHR) objects are used to interact with servers. You can retrieve data from a URL without having to do a full page refresh. This enables a Web page to update just part of a page without disrupting what the user is doing.
Here are some references;
https://stackoverflow.com/questions/377644/jquery-ajax-error-handling-show-custom-exception-messages

