Skip to content

Unauthorized

@tsed/exceptions

Usage

typescript
import { Unauthorized } from "@tsed/exceptions";

See /packages/specs/exceptions/src/types/clientErrors/Unauthorized.ts.

Overview

ts
class Unauthorized extends ClientException {
    static readonly STATUS = 401;
    constructor(message: string, origin?: Error | string | any);
}

static readonly STATUS

ts
static readonly STATUS = 401;

Released under the MIT License.