- statusCode (default: {})
- Type: PlainObject
- An object of numeric HTTP codes and functions to be called when the response has the corresponding code. For example, the following will alert when the response status is a 404:
-
- $.ajax({
- statusCode: {
- 404: function() {
- alert( "page not found" );
- }
- }
- });
- If the request is successful, the status code functions take the same parameters as the success callback; if it results in an error (including 3xx redirect), they take the same parameters as the error callback.
So i believe if a page does't exist , you can write your own code to handle the situation. GREAT !