Files
Showy/backend/errors/UnauthorizedError.js
T

13 lines
234 B
JavaScript

const CustomError = require('./CustomError');
class UnauthorizedError extends CustomError {
constructor(message) {
super(message);
}
statusCode() {
return 401; // Unauthorized
}
}
module.exports = UnauthorizedError;