mcpField

error-handling

trpcDevelopment126 installs

About error-handling

Throw typed errors with TRPCError and error codes (NOT_FOUND, UNAUTHORIZED, BAD_REQUEST, INTERNAL_SERVER_ERROR), configure errorFormatter for client-side Zod error display, handle errors globally with onError callback, map tRPC errors to HTTP status codes with getHTTPStatusCodeFromError().

Install

Copy the command and run it in a terminal.

$npx skills add https://trpc/trpc --skill error-handling

After installing, type/error-handlingin Claude Code to confirm it loaded.

Comments

Markdown supported