mirror of
https://github.com/tdurieux/anonymous_github.git
synced 2026-05-20 08:24:43 +02:00
Standardize error responses with consistent format and human-readable messages (#667)
This commit is contained in:
+1
-1
@@ -27,7 +27,7 @@ function indexResponse(req: express.Request, res: express.Response) {
|
||||
req.path.startsWith("/favicon") ||
|
||||
req.path.startsWith("/api")
|
||||
) {
|
||||
return res.status(404).send("Not found");
|
||||
return res.status(404).json({ error: "not_found" });
|
||||
}
|
||||
if (
|
||||
req.params.repoId &&
|
||||
|
||||
Reference in New Issue
Block a user