Clear Up
SharpKit Reference

AjaxSettings.statusCode Property

Default: {} A map of numeric HTTP codes and functions to be called when the response has the corresponding code.

Namespace: SharpKit.jQuery

Class: AjaxSettings


public object statusCode { get; set; }

Return Value

Type: System.Object


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, they take the same parameters as the error callback.
© Copyright 2005-2011 SharpKit. All rights reserved.