Following are different stats(0-4) of ready state in XMLHttpRequest 0 Ajax Request not initialized 1 Ajax Request's server connection established 2 Ajax Request received 3 Ajax Request processing 4 request finished and response is ready.