recoder-code
Version:
🚀 AI-powered development platform - Chat with 32+ models, build projects, automate workflows. Free models included!
12 lines (11 loc) • 412 B
TypeScript
/**
* Error handling middleware
*/
import { Request, Response, NextFunction } from 'express';
export interface AppError extends Error {
statusCode?: number;
status?: string;
isOperational?: boolean;
}
export declare function errorHandler(err: AppError, req: Request, res: Response, next: NextFunction): void;
export declare function notFound(req: Request, res: Response, next: NextFunction): void;