Variable ErrorHandlerSchemaConst
ErrorHandlerSchema: ZodObject<
{ error: ZodOptional<ZodString>; status_code: ZodOptional<ZodString> } & {
handler: ZodLiteral<"error">;
},
"strip",
ZodTypeAny,
{ error?: string; handler: "error"; status_code?: string },
{ error?: string; handler: "error"; status_code?: string },
> = ...
Error handler schema - static error response
Returns an error response with a specified status code and message. Use this to trigger Caddy's error handling for custom error pages.