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