fix: use 502 when enka returns unexpected error

This commit is contained in:
2026-03-18 16:08:56 +07:00 Unverified
parent 370db22c81
commit 084b2e20cd
+1 -1
View File
@@ -391,7 +391,7 @@ export function card(app: App) {
"Too many requests to enka.network, please try again later",
);
else if (err instanceof InternalError)
return status(500, "Internal server error");
return status(502, "Internal server error");
throw err;
}
},