16 lines
598 B
TypeScript
16 lines
598 B
TypeScript
import { ApiProperty } from '@nestjs/swagger';
|
|
|
|
export class ApiErrorResponse {
|
|
@ApiProperty({ description: 'موفقیتآمیز بودن درخواست', example: false })
|
|
success: boolean;
|
|
|
|
@ApiProperty({ description: 'پیام خطا', example: 'اطلاعات وارد شده نامعتبر است. لطفاً فرم را بررسی کنید.' })
|
|
message: string;
|
|
|
|
@ApiProperty({ description: 'کد خطا', example: 'BAD_REQUEST' })
|
|
code: string;
|
|
|
|
@ApiProperty({ description: 'جزئیات خطا (در صورت وجود)', required: false, example: {} })
|
|
details?: any;
|
|
}
|