Hono RPC - How to declare status codes stuff that isnt created in application code. #3501
Unanswered
ryanleecode
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi im using Hono RPC to communicate from my front end and backend in a typesafe way. In my application i return status codes like 400, 404, 500, etc.. and catch or handle them in my client code. the problem is i am using cloudfront & a waf. And these integrations can return 429 or 502 status code. So if i a switch in my client code based on status code, i cannot make it exhaustive because it doesn't know about these codes.
Is there a simple way to declare additional status codes in hono rpc?
Beta Was this translation helpful? Give feedback.
All reactions