// Re-export all error classes from types
export {
  AppError,
  ValidationError,
  UnauthorizedError,
  ForbiddenError,
  NotFoundError,
} from '../types/index.js';

// Additional error class not in types
import { AppError } from '../types/index.js';

export class ConflictError extends AppError {
  constructor(message: string = 'Conflicto con el recurso existente') {
    super(message, 409, 'CONFLICT');
    this.name = 'ConflictError';
  }
}
