export interface IErrorDTO {
  detail?: string;
  instance?: string;
  status: number;
  title: string;
  type?: string;
  context: IErrorContextDTO;
  extra: IErrorExtraDTO;
}

export interface IErrorContextDTO {
  user?: unknown;
  params?: Record<string, any>;
  query?: Record<string, any>;
  body?: Record<string, any>;
}

export interface IErrorExtraDTO {
  errors: Record<string, any>[];
}
