Package
@fastify/error
A small utility, used by Fastify itself, for generating consistent error objects across your codebase and plugins.
Key numbers
As of 25 Sept 2026
- Weekly downloads
- 9.3m
- +252% over 12 months
- Gzip bundle size
- -
- No Bundlephobia data
- Dependencies
- 0
- Direct, from package.json
- Last release
- 1 year ago
- v4.2.0
- GitHub stars
- 135
- 23 forks
- Open issues / PRs
- 2 / 3
- Contributors
- -
- Commits, last 52 weeks
- 14
Downloads
Last week 2026-09-15 to 2026-09-21
9,272,465 downloads last week, 44,967,669 in the last month. The 12-month change of +252% compares the average of the last 4 weeks with the first 4 weeks of the series.
- Releases, last 12 months
- 011 in total
- Latest version
- 4.2.0, 1 Jun 20251 year ago
- First published
- 27 Apr 2022
- Last push to GitHub
- 7 Aug 202648 days before the snapshot
- Repository archived
- No
- Open issues
- 2
- Open pull requests
- 3
- Commits, last 52 weeks
- 14
- Dependents on npm
- 141
Major versions
- v4 first release 4.0.0, 21 Jun 2024
- v3 first release 3.0.0, 23 May 2022
- v2 first release 2.0.0, 27 Apr 2022
Recent releases
| Version | Published |
|---|---|
| 4.2.0 | 1 Jun 2025 |
| 4.1.0 | 12 Mar 2025 |
| 4.0.0 | 21 Jun 2024 |
| 3.4.1 | 4 Nov 2023 |
| 3.4.0 | 3 Oct 2023 |
| 3.3.0 | 23 Jun 2023 |
| 3.2.1 | 3 Jun 2023 |
| 3.2.0 | 7 Dec 2022 |
| 3.1.0 | 2 Dec 2022 |
| 3.0.0 | 23 May 2022 |
| 2.0.0 | 27 Apr 2022 |
- Module format
- CommonJSFrom package.json type, main and exports fields
- TypeScript types
- Bundled
- Node.js engine range
- Not declared
- Runtimes
- -
- Unpacked size (npm)
- 36 kB
- Dependencies (0)
- None
npm install @fastify/error- jsDelivr
https://cdn.jsdelivr.net/npm/@fastify/error@4.2.0/ - unpkg
https://unpkg.com/@fastify/error@4.2.0/ - esm.sh
https://esm.sh/@fastify/error@4.2.0
Indexability: Indexed.