diff --git a/src/controllers/auth.controller.ts b/src/controllers/auth.controller.ts index 503c38f..0ecc897 100644 --- a/src/controllers/auth.controller.ts +++ b/src/controllers/auth.controller.ts @@ -39,7 +39,7 @@ export const register = async (req: Request, res: Response): Promise => { } if (!process.env.ENABLE_REGISTRATION) { - res.status(403).json({ errors: ['Registration is disabled'] }); + res.status(400).json({ message: 'Registration is disabled' }); return; }