flame/utils/ErrorResponse.js

9 lines
166 B
JavaScript
Raw Normal View History

class ErrorResponse extends Error {
constructor(message, statusCode) {
super(message);
this.statusCode = statusCode;
}
}
module.exports = ErrorResponse;