Publish v0.2.0

This commit is contained in:
Sascha Mann
2019-08-21 15:53:55 +02:00
parent 2a0ae40f1c
commit 5f6d33bda5
544 changed files with 92568 additions and 13 deletions

View File

@@ -0,0 +1,15 @@
module.exports = class HttpError extends Error {
constructor (message, code, headers) {
super(message)
// Maintains proper stack trace (only available on V8)
/* istanbul ignore next */
if (Error.captureStackTrace) {
Error.captureStackTrace(this, this.constructor)
}
this.name = 'HttpError'
this.code = code
this.headers = headers
}
}