connect-platform
Version:
A platform to build backened code mostly in a visual manner.
19 lines (16 loc) • 403 B
JavaScript
class InputMissing extends Error {
constructor(missing, given) {
super(`input ${missing} is missing from {${Object.keys(given)}}`);
this.status = 400;
}
}
class UnregisteredPath extends Error {
constructor(path) {
super(`${path} is not registered with registry.`);
this.status = 404;
}
}
module.exports = {
InputMissing: InputMissing,
UnregisteredPath: UnregisteredPath,
}