fastify-smart-errors
v1.0.0
Published
Smart, consistent and i18n-ready error handling for Fastify
Downloads
91
Readme
fastify-smart-errors
A registry-based, multilingual error handling plugin for Fastify.
fastify-smart-errors lets you define all your API errors in one place and throw them safely anywhere in your application.
Features
- Centralized error registry
- Multilingual error messages (
Accept-Languagesupport) - Clean and consistent error response format
- Fully typed (TypeScript)
- Fastify v5 compatible
- Production & development modes
Installation
npm install fastify-smart-errors