NOTE: For Version 3 of the AWS SDK for PHP, please see the V3 User Guide and V3 API Reference.

# Class AbstractErrorCodeBackoffStrategy

Strategy used to retry when certain error codes are encountered

  Guzzle\Plugin\Backoff\AbstractBackoffStrategy implements Guzzle\Plugin\Backoff\BackoffStrategyInterface
  Guzzle\Plugin\Backoff\AbstractErrorCodeBackoffStrategy

### Direct known subclasses

`Guzzle\Plugin\Backoff\CurlBackoffStrategy`, `Guzzle\Plugin\Backoff\HttpBackoffStrategy`, `Guzzle\Plugin\Backoff\ReasonPhraseBackoffStrategy`

Abstract
Namespace: Guzzle\Plugin\Backoff
Located at Guzzle/Plugin/Backoff/AbstractErrorCodeBackoffStrategy.php

## Methods summary

- `public` `__construct ( array $codes = null, Guzzle\Plugin\Backoff\BackoffStrategyInterface $next = null )`
- `public static` `getDefaultFailureCodes ( )`

  Get the default failure codes to retry

- `public` `makesDecision ( )`

  Check if the strategy does filtering and makes decisions on whether or not to retry.

## Methods detail

# `public`
`__construct( array $codes = null, `Guzzle\Plugin\Backoff\BackoffStrategyInterface` $next = null )`

#### Parameters

$codes
  `array`
  $codes Array of codes that should be retried
$next
  ``Guzzle\Plugin\Backoff\BackoffStrategyInterface``
  $next The optional next strategy

# `public static array`
`getDefaultFailureCodes( )`

Get the default failure codes to retry

#### Returns

`array`
# `public boolean`
`makesDecision( )`

Check if the strategy does filtering and makes decisions on whether or not to retry.

Strategies that return false will never retry if all of the previous strategies in a chain defer on a backoff decision.

#### Returns

`boolean`

### Methods inherited from Guzzle\Plugin\Backoff\AbstractBackoffStrategy

`getBackoffPeriod()`, `getDelay()`, `getNext()`, `setNext()`

### Magic methods summary

## Properties summary

`protected static array` | $defaultErrorCodes | # Default cURL errors to retry
`protected array` | $errorCodes | # Error codes that can be retried

### Properties inherited from Guzzle\Plugin\Backoff\AbstractBackoffStrategy

`$next`