Skip to content

Scheduling infrastructure for absolutely everyone.

use proper response code

femyedaad657c0261bf
diff --git a/pages/api/auth/forgot-password.ts b/pages/api/auth/forgot-password.ts
index e856ed42cff..415965955e6 100644
--- a/pages/api/auth/forgot-password.ts
+++ b/pages/api/auth/forgot-password.ts
@@ -11,7 +11,7 @@ dayjs.extend(timezone);
export default async function handler(req: NextApiRequest, res: NextApiResponse) {
if (req.method !== "POST") {
- return res.status(400).json({ message: "" });
+ return res.status(405).json({ message: "" });
}
try {