FetchError

JSON →
library 1.0.0 ·javascript
verified Jun 7, 2026

A specialized error class for the Fetch API, wrapping HTTP error responses with status code, status text, and optional response object. Version 1.0.0 stable, maintained on a semantic versioning cadence. Unlike generic Error, it allows instanceof checks and carries structured error info. Designed to pair with fetch() for clean error handling.