mirror of
https://github.com/fosrl/pangolin.git
synced 2025-06-23 05:39:09 +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");
|
|
}
|