onError, get error status #2435
-
Hello, I'm having an issue retrieving the error status with the onError handler. Thanks for your help. |
Beta Was this translation helpful? Give feedback.
Answered by
NicoPlyley
Apr 1, 2024
Replies: 1 comment 1 reply
-
There is no status, it's based off web standards which you can see here. Some errors in other libraries do include a status so you can optionally chain it for the cases that do. I also have |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
Jayllyz
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
There is no status, it's based off web standards which you can see here. Some errors in other libraries do include a status so you can optionally chain it for the cases that do. I also have
hono-error-handler
which can make error handling a lot easier