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