What HTTP status codes are considered successful in jQuery.ajax?

2 answers

From the source code:

if ( status >= 200 && status < 300 || status === 304 ) { 

So any 2xx and under special circumstances 304. 304 has some additional processing, but check the source for more information.

+79
Nov 28 '11 at 1:56 a.m.
source

You will find this in the completed callback. Success is any status greater than or equal to 200 and less than 300. Unmodified (304) is also considered successful.

+4
Nov 28 '11 at 1:59 a.m.
source



All Articles