The documentation doesn't seem to specify exactly what is meant by 'success' in jQuery.ajax. Is it any 2xx code? Only 200?
2 Answers
From the source code:
if ( status >= 200 && status < 300 || status === 304 ) {
So any 2xx and under special circumstances 304 as well. 304 has some extra handling though, check the source for more info.
1 Comment
Lord Darth Vader
Angular js considers 304 a error, and triggers the error event