diff --git a/src/lib/response-helpers.ts b/src/lib/response-helpers.ts index b644cbb..99b7bf4 100644 --- a/src/lib/response-helpers.ts +++ b/src/lib/response-helpers.ts @@ -5,11 +5,11 @@ import LoggerService from './logger-service'; const log = LoggerService.GetInstance(); export function badRequest(res: NextApiResponse, message: string): void { - res.status(400).end(); + res.status(400).send(message); log.error(message); } export function internal(res: NextApiResponse, message: string): void { - res.status(500).end(); + res.status(500).send(message); log.error(message); }