diff --git a/app/generative-energy/GECalculator.tsx b/app/generative-energy/GECalculator.tsx
index b5d91b3..071a56c 100644
--- a/app/generative-energy/GECalculator.tsx
+++ b/app/generative-energy/GECalculator.tsx
@@ -169,7 +169,7 @@ export default defineComponent({
-
- November 2024: Migrated to new web framework and fixed some buggy input.
+ 1st November 2024: Migrated to new web framework and fixed some buggy input.
-
13th March 2024: Removed the synthetic/pure distinction as it was confusing and
diff --git a/main.ts b/main.ts
index 034165f..3152d64 100644
--- a/main.ts
+++ b/main.ts
@@ -69,7 +69,13 @@ function getAPIResponse(apiReq: Request): Response {
slug: "hypothyroidism",
},
] satisfies DJAPIResultMap["/rp-articles"];
- }
+ }
+
+ if (!jsonResponse) {
+ jsonResponse = { error: `API route ${ apiPath } not found.` };
+ status = 404;
+ }
+
}
const headers = new Headers();