mirror of
https://github.com/ZeppelinBot/Zeppelin.git
synced 2025-03-18 15:00:00 +00:00
14 lines
314 B
TypeScript
14 lines
314 B
TypeScript
![]() |
import { Response } from "express";
|
||
|
|
||
|
export function unauthorized(res: Response) {
|
||
|
res.status(403).json({ error: "Unauthorized" });
|
||
|
}
|
||
|
|
||
|
export function clientError(res: Response, message: string) {
|
||
|
res.status(400).json({ error: message });
|
||
|
}
|
||
|
|
||
|
export function ok(res: Response) {
|
||
|
res.json({ result: "ok" });
|
||
|
}
|