13 lines
257 B
JavaScript
13 lines
257 B
JavaScript
const { GenericError } = require("./generic")
|
|
|
|
class HTTPError extends GenericError {
|
|
constructor(message, httpStatus, code = "http", type = "generic") {
|
|
super(message, code, type)
|
|
this.status = httpStatus
|
|
}
|
|
}
|
|
|
|
module.exports = {
|
|
HTTPError,
|
|
}
|