x249/node-api

View on GitHub
lib/utils/httpErrors/HTTP401Error.ts

Summary

Maintainability
A
0 mins
Test Coverage
import { HTTPClientError } from './httpClientError';

export class HTTP401Error extends HTTPClientError {
    public readonly statusCode: number = 401;

    constructor(message: string | object = 'Unauthorized') {
        super(message);
    }
}