Try to fix error handling

This commit is contained in:
Fang-Pen Lin
2025-10-31 16:52:26 -07:00
parent 453dc57829
commit c7cf1cac9f

View File

@@ -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