1
0
Fork 0
mirror of synced 2024-06-29 11:31:06 +12:00
budibase/packages/backend-core/src/errors/http.ts

16 lines
278 B
TypeScript
Raw Normal View History

import { GenericError } from "./generic"
export class HTTPError extends GenericError {
status: number
constructor(
message: string,
httpStatus: number,
code = "http",
type = "generic"
) {
super(message, code, type)
this.status = httpStatus
}
}