executing-plans
executing-plans
Use when executing an implementation plan in the current session as the implementer yourself — your human partner chose inline execution, or no subagent tool is available
nestjs-error-handlingImplement Global Exception Filters and standard error formats in NestJS. Use when implementing global exception filters or standardizing error responses in NestJS.
Independent GitHub snapshot · Automated classification · Original documentation governs
Request/Response from Express/Fastify types directly.HttpAdapterHost to access underlying platform response methods.const { httpAdapter } = this.httpAdapterHost;ApiErrorResponse. {
"statusCode": 400,
"message": "Validation failed",
"error": "Bad Request",
"timestamp": "ISO...",
"path": "/users"
}
EntityNotFoundError).catchError(err => throw new NotFoundException())).NotFoundException, ForbiddenException, BadRequestException.HttpException only for domain-specific failures that need specific status codes.MyClass.name to Logger constructor.error: 500s (Stack trace required).warn: 400s (Client errors).process.env.NODE_ENV === 'production').ApiException payloads not leak internal file paths or raw variable dumps.NODE_ENV === 'production' check.HttpAdapterHost for platform-agnostic error handling.