storage-upload/api/error.mjs

8 lines
129 B
JavaScript
Raw Normal View History

2017-12-10 09:45:38 +00:00
export class HttpError extends Error {
constructor(message, status = 500) {
super(message)
this.status = status
}
}