Files
SerpentRace/SerpentRace_Backend/dist/Application/Services/ErrorResponseService.d.ts
T

11 lines
654 B
TypeScript

import { Response } from 'express';
export declare class ErrorResponseService {
static sendError(res: Response, statusCode: number, message: string, details?: any): Response;
static sendInternalServerError(res: Response): Response;
static sendBadRequest(res: Response, message?: string, details?: any): Response;
static sendUnauthorized(res: Response, message?: string): Response;
static sendForbidden(res: Response, message?: string): Response;
static sendNotFound(res: Response, message?: string): Response;
static sendConflict(res: Response, message?: string): Response;
}
//# sourceMappingURL=ErrorResponseService.d.ts.map