moved to new repo
This commit is contained in:
11
modules/sub/errors.js
Normal file
11
modules/sub/errors.js
Normal file
@@ -0,0 +1,11 @@
|
||||
import loc from "./loc.js";
|
||||
|
||||
export function internalError(res) {
|
||||
res.status(501).json({ status: "error", text: "Internal Server Error" });
|
||||
}
|
||||
export function errorUnsupported(lang) {
|
||||
return loc(lang, 'apiError', 'notSupported') + loc(lang, 'apiError', 'letMeKnow');
|
||||
}
|
||||
export function genericError(lang, host) {
|
||||
return loc(lang, 'apiError', 'brokenLink', host) + loc(lang, 'apiError', 'letMeKnow');
|
||||
}
|
||||
Reference in New Issue
Block a user