IDLE
: The request hasn't started yetPENDING
: The request is in flight, and hasn't finishedFAILED
: The request finished, and failedSUCCEEDED
: The request finished, and was successfulNote: the request status is different from an HTTP status code. A request that represents an HTTP request could also have a status code associated with it, such as 200 or 404.
IDLE
. When the request begins, it moves to PENDING
.SUCCEEDED
or FAILED
depending on the outcome.IDLE
again.SUCCEEDED
state after they resolve. Other times, you may need to "reset" the state back to IDLE
.Note: when a request is aborted, we recommend that you move it back to theIDLE
state. Webapps typically abort requests because the user no longer needs to know if the request succeeds or fails.