initial commit

This commit is contained in:
Blue 2018-08-05 00:46:25 +03:00 committed by Юрий Губич
commit 4b60ece582
327 changed files with 28286 additions and 0 deletions

15
magnus/lib/httpError.js Normal file
View file

@ -0,0 +1,15 @@
"use strict";
var http = require("http");
class HttpError extends Error
{
constructor(status, message) {
super(status, message);
Error.captureStackTrace(this, HttpError);
this.status = status;
this.message = message || http.STATUS_CODES[status] || "Error";
}
}
module.exports = HttpError;