Skip to content

confused by the lack of samples for the retryStatusCodes option. #479

@ysknsid25

Description

@ysknsid25

Describe the change

During the implementation of ofetch, we considered trying several retries for a particular HTTP STATUS in the retry strategy.

I went to the Auto Retry documentation for this, but although it mentions retryStatusCodes, I couldn't figure out how to specify them, so I ended up looking at the code.

This is a bit stressful, so if retryStatusCodes are mentioned, I think it would be better to have them in the sample code as well, but what do you think?

Image

URLs

https://github.com/unjs/ofetch?tab=readme-ov-file#%EF%B8%8F-auto-retry

Additional information

  • Would you be willing to help?

Metadata

Metadata

Assignees

No one assigned

    Labels

    documentationImprovements or additions to documentation

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions