Skip to content

Infisical is the open-source platform for securing secrets, certificates, access, and AI Agents.

Try to fix error handling

Fang-Pen Linc7cf1cac9f5b
diff --git a/backend/src/server/plugins/error-handler.ts b/backend/src/server/plugins/error-handler.ts
index 1142694b53..ecaa60c998 100644
--- a/backend/src/server/plugins/error-handler.ts
+++ b/backend/src/server/plugins/error-handler.ts
@@ -249,7 +249,8 @@ export const fastifyErrHandler = fastifyPlugin(async (server: FastifyZodProvider
.status(error.status)
.send({
reqId: req.id,
- status: error.status,
+ error: error.name,
+ statusCode: error.status,
type: `urn:ietf:params:acme:error:${error.type}`,
detail: error.detail,
message: error.message