natural-language-api-google/errors/unauthenticated.js

12 lines
294 B
JavaScript
Raw Normal View History

2023-10-09 17:22:48 +00:00
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;