What HTTP status codes count as success in jQuery.ajax?

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.

Leave a Comment