Skip to content

Commit

Permalink
Merge pull request #18 from celosauro/patch-1
Browse files Browse the repository at this point in the history
Update doc about custom http codes
  • Loading branch information
leocarmo committed Mar 6, 2024
2 parents 4c9b846 + 9a03dc1 commit 6c04769
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,10 @@ $handler = new GuzzleMiddleware($circuit);
$handler->setCustomIgnoreCodes([412]);
```

> [!IMPORTANT]
> To use `Customize success status code` or `Ignore status code` you must set the [Guzzle client config `http_errors = false`](https://docs.guzzlephp.org/en/stable/request-options.html#http-errors) because the Guzzle Client throws a `ClientException` or `ServerException` when the status code is not in range `>200 && <300`.

## Set circuit break settings
> This is not required, default values will be set
```php
Expand Down

0 comments on commit 6c04769

Please sign in to comment.