import { UnprocessableEntityException } from '@nestjs/common'; /** * BadBodyException * * Custom exception extending NestJS's `UnprocessableEntityException`. * This exception should be thrown when the request body fails validation * or cannot be interpreted correctly by the server. * * Typical scenarios include: * - Missing required fields * - Incorrect or unexpected data types * - Values violating schema constraints or business rules * * By encapsulating this exception, we provide a clear and consistent * mechanism for handling client input errors across the application. */ export declare class BadBodyException extends UnprocessableEntityException { /** * Constructs a new `BadBodyException`. * * @param {string} [message] - Optional custom error message for additional context. * Defaults to a standardized message if not provided. */ constructor(message?: string); } /** * ApiBadBodyResponse * * Swagger documentation decorator for `422 Unprocessable Entity` responses. * Apply this to routes that may reject invalid or malformed request bodies. * This ensures the generated API documentation communicates the validation * expectations and error conditions to API consumers. * * @param {string} [description] - Optional custom description for the response. * Defaults to a standardized message if not provided. * @returns {MethodDecorator} - Swagger method decorator marking the response. */ export declare function ApiBadBodyResponse(description?: string): MethodDecorator;