mirror of
https://github.com/fosrl/pangolin.git
synced 2025-06-24 06:08:48 +02:00
6 lines
212 B
TypeScript
6 lines
212 B
TypeScript
import HttpCode from "@server/types/HttpCode";
|
|
import createHttpError from "http-errors";
|
|
|
|
export function unauthorized(msg?: string) {
|
|
return createHttpError(HttpCode.UNAUTHORIZED, msg || "Unauthorized");
|
|
}
|