jQuery Ajax Error Handling Function.
Source: http://www.jquery4u.com/ajax/jquery-ajax-error-handling-function/