Skip to content

Commit

Permalink
chore: add experimental for Too Early status
Browse files Browse the repository at this point in the history
  • Loading branch information
iiio2 committed Jul 29, 2024
1 parent 75e31b7 commit 6791594
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ await ofetch("/url", { ignoreResponseError: true });

- `408` - Request Timeout
- `409` - Conflict
- `425` - Too Early
- `425` - Too Early (Experimental)
- `429` - Too Many Requests
- `500` - Internal Server Error
- `502` - Bad Gateway
Expand Down
2 changes: 1 addition & 1 deletion src/fetch.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ import type {
const retryStatusCodes = new Set([
408, // Request Timeout
409, // Conflict
425, // Too Early
425, // Too Early (Experimental)
429, // Too Many Requests
500, // Internal Server Error
502, // Bad Gateway
Expand Down

0 comments on commit 6791594

Please sign in to comment.