8 lines
166 B
JavaScript
8 lines
166 B
JavaScript
class ErrorResponse extends Error {
|
|
constructor(message, statusCode) {
|
|
super(message);
|
|
this.statusCode = statusCode;
|
|
}
|
|
}
|
|
|
|
module.exports = ErrorResponse;
|