Skip to content

Commit c817be8

Browse files
authored
docs: add retryStatusCodes option to auto retry example (#480)
1 parent b71764b commit c817be8

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,7 @@ The default for `retryDelay` is `0` ms.
132132
await ofetch("http://google.com/404", {
133133
retry: 3,
134134
retryDelay: 500, // ms
135+
retryStatusCodes: [ 404, 500 ], // response status codes to retry
135136
});
136137
```
137138

0 commit comments

Comments
 (0)