UNPKG

@tegain/vue-cli-plugin-mevn

Version:

Add MEVN REST API boilerplate to your Vue-CLI project

12 lines (10 loc) 334 B
import { HttpException } from './http.exception'; import { HttpStatus } from '../http-status'; export class UnauthorizedException extends HttpException { constructor (message, error = 'Unauthorized') { super( HttpException.createHttpExceptionBody(message, error, HttpStatus.UNAUTHORIZED), HttpStatus.UNAUTHORIZED, ); } }