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/Responsefrom Express/Fastify types directly.- Use:
HttpAdapterHostto access the underlying platform response methods. const { httpAdapter } = this.httpAdapterHost;
- Use:
- Structure:
- Implement strictly typed error responses.
- Refer to API Standards for
ApiErrorResponse.