storage-upload/api/error.mjs

7 lines
129 B
JavaScript

export class HttpError extends Error {
constructor(message, status = 500) {
super(message)
this.status = status
}
}