Maps validation failures onto the portal's { error } body, answers every server error with the generic body, and leaves other client errors to Fastify.
{ error }
The error Fastify caught.
The request being answered.
The reply to send on.
The reply, already sent.
Maps validation failures onto the portal's
{ error }body, answers every server error with the generic body, and leaves other client errors to Fastify.