diff --git a/src/lib/ServerError.js b/src/lib/ServerError.js new file mode 100644 index 00000000..1e567f4b --- /dev/null +++ b/src/lib/ServerError.js @@ -0,0 +1,10 @@ +'use strict'; + +module.exports = class ServerError extends Error { + + constructor(message, statusCode = 500) { + super(message); + this.statusCode = statusCode; + } + +};