Refactor the code a bit

This commit is contained in:
Fang-Pen Lin
2025-11-07 09:19:00 -08:00
parent e2799b934a
commit 744b02ee00
5 changed files with 136 additions and 45 deletions
@@ -248,6 +248,7 @@ export const fastifyErrHandler = fastifyPlugin(async (server: FastifyZodProvider
.type("application/problem+json")
.status(error.status)
.send({
reqId: req.id,
status: error.status,
type: `urn:ietf:params:acme:error:${error.type}`,
detail: error.detail