mirror of
https://github.com/imputnet/cobalt.git
synced 2025-07-14 17:28:27 +00:00
and add rate limit status
This commit is contained in:
parent
927be20eae
commit
a094331232
@ -25,7 +25,12 @@ export function createResponse(responseType, responseData) {
|
||||
status = 400;
|
||||
}
|
||||
|
||||
if (responseType === "rate-limit") {
|
||||
status = 429;
|
||||
}
|
||||
|
||||
switch (responseType) {
|
||||
case "rate-limit": //Jumps to the next one
|
||||
case "error":
|
||||
response = {
|
||||
error: {
|
||||
|
Loading…
Reference in New Issue
Block a user