There are 5ready state in ajax. These are as follows:
ready state 0: request not initialized
ready state 1: server connection established
ready state 2: request received
ready state 3: processing request
ready state 4: request finished and response is ready