Custom Error On OpenAPIHono #4011
userdehghani
started this conversation in
General
Replies: 1 comment 1 reply
-
|
https://github.com/SyahrulBhudiF/Hono-Starter-Code look at this bro, i've created that handle error at global and handle the route better. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
i cant use
zValidatorlike this reference. now i need to custom my error to simple json response{"error": "Invalid User ID"}with error code400but its frustrating. any body can help?userRoute.ts
ErrorHandler.ts
Application.ts
main.ts
Beta Was this translation helpful? Give feedback.
All reactions