The statusCode option to $.ajax specifies that 2xx handlers accept the same parameters as the success callback and 4xx/5xx handlers accept the same parameters as the error callback. However, it appears that any 3xx status code that is not transparently handled by the browser (like, say, 300) is also treated like an error. The documentation should be updated to reflect that 3xx status codes are treated like errors and, as such, the callback parameters should be the same as the error callback.
The
statusCodeoption to$.ajaxspecifies that 2xx handlers accept the same parameters as thesuccesscallback and 4xx/5xx handlers accept the same parameters as theerrorcallback. However, it appears that any 3xx status code that is not transparently handled by the browser (like, say, 300) is also treated like an error. The documentation should be updated to reflect that 3xx status codes are treated like errors and, as such, the callback parameters should be the same as theerrorcallback.