mirror of
https://github.com/koreanbots/core.git
synced 2025-12-17 06:40:24 +00:00
chore: added errors for 429
This commit is contained in:
parent
3a4d78be8a
commit
2ac365ebe8
@ -3,7 +3,7 @@ import { NextApiHandler, NextApiRequest, NextApiResponse } from 'next'
|
|||||||
|
|
||||||
const RateLimit: NextApiHandler = (_req: NextApiRequest, res: NextApiResponse) => {
|
const RateLimit: NextApiHandler = (_req: NextApiRequest, res: NextApiResponse) => {
|
||||||
res.statusCode = 429
|
res.statusCode = 429
|
||||||
return ResponseWrapper(res, { code: 429, message: '지정된 시간에 너무 많은 요청을 보냈습니다. 잠시 뒤에 시도해주세요.' })
|
return ResponseWrapper(res, { code: 429, message: '지정된 시간에 너무 많은 요청을 보냈습니다. 잠시 뒤에 시도해주세요.', errors: ['지정된 시간에 너무 많은 요청을 보냈습니다. 잠시 뒤에 시도해주세요.'] })
|
||||||
}
|
}
|
||||||
|
|
||||||
export default RateLimit
|
export default RateLimit
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user