defaultTransientHttpStatusCodes constant

List<int> const defaultTransientHttpStatusCodes

A list of HTTP status codes that can generally be retried.

You may want to use a different list depending on the needs of your application.

Implementation

static const List<int> defaultTransientHttpStatusCodes = <int>[
  0, // Network error
  408, // Request timeout
  500, // Internal server error
  502, // Bad gateway
  503, // Service unavailable
  504 // Gateway timeout
];