From 2ac365ebe86e822e283cd77fee19f46a39f8275e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EC=9B=90=EB=8D=94?= Date: Thu, 4 Feb 2021 12:30:22 +0900 Subject: [PATCH] chore: added errors for 429 --- pages/api/_custom/429.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pages/api/_custom/429.ts b/pages/api/_custom/429.ts index cffc1f8..1431034 100644 --- a/pages/api/_custom/429.ts +++ b/pages/api/_custom/429.ts @@ -3,7 +3,7 @@ import { NextApiHandler, NextApiRequest, NextApiResponse } from 'next' const RateLimit: NextApiHandler = (_req: NextApiRequest, res: NextApiResponse) => { res.statusCode = 429 - return ResponseWrapper(res, { code: 429, message: '지정된 시간에 너무 많은 요청을 보냈습니다. 잠시 뒤에 시도해주세요.' }) + return ResponseWrapper(res, { code: 429, message: '지정된 시간에 너무 많은 요청을 보냈습니다. 잠시 뒤에 시도해주세요.', errors: ['지정된 시간에 너무 많은 요청을 보냈습니다. 잠시 뒤에 시도해주세요.'] }) } export default RateLimit