Skip to main content

Introduction

NestJS Swagger decorator for API exceptions.

This decorator is a wrapper for ApiResponse decorator. It uses message, error and status of all given HttpException and generates the correct responses in the OpenAPI Swagger documentation based on them. This decorator is especially useful when used with custom exceptions.