nestjs-error-handling

Installation
SKILL.md

NestJS Error Handling Standards

Priority: P1 (OPERATIONAL)

Global error handling and exception management patterns.

  • Requirement: Centralize error formatting.
  • Platform Agnostic: Do not import Request/Response from Express/Fastify types directly.
    • Use: HttpAdapterHost to access the underlying platform response methods.
    • const { httpAdapter } = this.httpAdapterHost;
  • Structure:
    • Implement strictly typed error responses.
    • Refer to API Standards for ApiErrorResponse.
Installs
1
GitHub Stars
67
First Seen
Oct 1, 2026