Determines whether a request should be retried based on the provided error.
This function checks the HTTP method, response status, and number of retries left to determine if a request should be retried.
The error object to check.
Optional
The HTTP method of the request (optional).
The number of retries left (optional).
true if the request should be retried, false otherwise.
true
false
Determines whether a request should be retried based on the provided error.
This function checks the HTTP method, response status, and number of retries left to determine if a request should be retried.