1

nest-exception

Structured, NestJS-style error handling for Node.js projects that do not use NestJS.

NestJS ships an excellent structured exception layer — typed HTTP exceptions, consistent error shapes, and a single place to map errors to responses. Projects built on plain Express or Fastify usually rebuild that by hand, inconsistently.

nest-exception bridges that gap by offering the same structured error-handling experience to projects outside of NestJS.

What it does

  • Typed HTTP exception classes with consistent serialization
  • One predictable error response shape across an entire service
  • Drop-in for Express and Fastify applications

Stack

TypeScript, Node.js.