12 lines
294 B
JavaScript
12 lines
294 B
JavaScript
|
const { StatusCodes } = require('http-status-codes');
|
||
|
const CustomAPIError = require('./custom-api');
|
||
|
|
||
|
class UnauthenticatedError extends CustomAPIError {
|
||
|
constructor(message) {
|
||
|
super(message);
|
||
|
this.statusCode = StatusCodes.UNAUTHORIZED;
|
||
|
}
|
||
|
}
|
||
|
|
||
|
module.exports = UnauthenticatedError;
|