cobalt/src/modules/sub/errors.js
wukko c0289b6a8c basically new readme and more languages
- indonesian localization by @LyfeV
- rewrote readme
- added new line at the end for files that were missing it
2022-08-01 21:48:37 +06:00

12 lines
344 B
JavaScript

import loc from "../../localization/manager.js";
export function internalError(res) {
res.status(501).json({ status: "error", text: "Internal Server Error" });
}
export function errorUnsupported(lang) {
return loc(lang, 'ErrorUnsupported');
}
export function genericError(lang, host) {
return loc(lang, 'ErrorBrokenLink', host);
}