function unauthorized
Since 0.1.0
unauthorized(message: string): HttpError

Creates a 401 Unauthorized error.

Parameters

message: string

Human-readable error message

Return Type

Usage

import { unauthorized } from "exceptions/src/index.ts";