Closed
Description
if (target.status >= 200 && target.status <= 299) {
// All 2xx HTTP codes are success cases.
...
}
Currently the player assumes that everything 2xx is a success. However 202 is generally used when the server hasn't finished processing and wants the client to try again later. From the documentation:
The request has been accepted for processing, but the processing has not been completed.
Should that if condition above be changed to filter 202? Or some new configuration parameter added such that clients can choose what constitutes a success
.