From ef51b25e4388cbdf3a27e23d9f1fa381ae20a5ad Mon Sep 17 00:00:00 2001 From: Elizabeth Hunt Date: Fri, 16 May 2025 16:17:13 -0700 Subject: snapshot --- u/server/activity/fourohfour.ts | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 u/server/activity/fourohfour.ts (limited to 'u/server/activity/fourohfour.ts') diff --git a/u/server/activity/fourohfour.ts b/u/server/activity/fourohfour.ts new file mode 100644 index 0000000..698dacd --- /dev/null +++ b/u/server/activity/fourohfour.ts @@ -0,0 +1,30 @@ +import { + type ITraceable, + JsonResponse, + TraceUtil, +} from "@emprespresso/pengueno"; + +export enum HealthCheckInput { + CHECK, +} +export enum HealthCheckOutput { + YAASQUEEN, +} + +const messages = [ + "(≧ω≦)ゞ Oopsie! This endpoint has gone a-404-dable!", + "。゚(。ノωヽ。)゚。 Meow-t found! Your API call ran away!", + "404-bidden! But like...in a cute way (・`ω´・) !", + "(=①ω①=) This endpoint is hiss-terically missing!", + "┐(´∀`)┌ Whoopsie fluff! No API here!", + "(つ≧▽≦)つ Your data went on a paw-sible vacation!", + "(ꈍᴗꈍ) Uwu~ not found, but found our hearts instead!", + "ヽ(;▽;)ノ Eep! This route has ghosted you~", +]; +export const FourOhFourActivity = (req: ITraceable) => + req.bimap(TraceUtil.withFunctionTrace(FourOhFourActivity)) + .map(() => + new JsonResponse(messages[Math.random() * messages.length], { + status: 404, + }) + ); -- cgit v1.2.3-70-g09d2