Skip to content

docs: clarify node-fetch error classes in error handling guide#1870

Open
nthbotast wants to merge 1 commit intonode-fetch:mainfrom
nthbotast:docs/error-types-549
Open

docs: clarify node-fetch error classes in error handling guide#1870
nthbotast wants to merge 1 commit intonode-fetch:mainfrom
nthbotast:docs/error-types-549

Conversation

@nthbotast
Copy link
Copy Markdown

@nthbotast nthbotast commented Mar 4, 2026

Summary

  • clarify that operational failures are not always FetchError
  • document common error classes users may encounter (AbortError, FetchError, TypeError, RangeError, SyntaxError, Error)
  • keep guidance on error.type, error.code, and test coverage reference

Closes #549

Testing

  • not run (documentation-only change)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Document types of fetch errors more thoroughly

1 participant