1
0
Fork 0
mirror of synced 2024-06-02 18:44:54 +12:00
budibase/packages/backend-core/src/errors/http.js
2022-05-28 23:03:31 +01:00

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,
}