tRPCttRPC
Powered by
ApteryxA
tRPC•3y ago•
1 reply
Apteryx

Make tRPC return Bad Request on Zod validation error?

As the title says, how can I make tRPC return a proper error message, like a Bad Request, when there is a Zod validation error?
image.png
tRPCJoin
Move Fast & Break Nothing. End-to-end typesafe APIs made easy.
5,015Members
Resources
Recent Announcements

Similar Threads

Was this page helpful?

Similar Threads

Usage with zod-validation-error
jlarmstJjlarmst / ❓-help
3y ago
TRPC & Zod Logging
josephJjoseph / ❓-help
3y ago
Zod Output validation failed
JohnyJJohny / ❓-help
9mo ago
Return TRPC Error from NextJS middleware
TomTTom / ❓-help
3y ago