- xhr.status: used to determine whether the request was successful or not.
- xhr.readyState: the state of the request'
- xhr.readyState zero(0) means "has not yet been sent"
- xhr.readyState zero(4) means "complete and response received"
The server provides the status, while the user agent provides the readyState.