[refactor] Change status 403->410 when link has expired

This commit is contained in:
Pavel Ostrovskij
2025-04-22 12:19:28 +03:00
committed by Sergey Konovalov
parent 41d3ac8245
commit 6247702d6b

View File

@ -76,7 +76,7 @@ function initCacheRouter(cfgStorage, routs) {
const currentTime = Math.floor(Date.now() / 1000);
if (currentTime > expires) {
res.sendStatus(403);
res.sendStatus(410);
return;
}