7 lines
129 B
JavaScript
7 lines
129 B
JavaScript
|
|
export class HttpError extends Error {
|
|
constructor(message, status = 500) {
|
|
super(message)
|
|
this.status = status
|
|
}
|
|
}
|