and add rate limit status

This commit is contained in:
lostdusty 2024-12-30 12:31:08 -03:00 committed by GitHub
parent 927be20eae
commit a094331232
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -25,7 +25,12 @@ export function createResponse(responseType, responseData) {
status = 400; status = 400;
} }
if (responseType === "rate-limit") {
status = 429;
}
switch (responseType) { switch (responseType) {
case "rate-limit": //Jumps to the next one
case "error": case "error":
response = { response = {
error: { error: {