-
How can I handle multiple errors like in my case? What I want is to display the error coming from the backend honojs, to the client side for the best ux experience, displayig the |
Beta Was this translation helpful? Give feedback.
Answered by
kosei28
May 22, 2024
Replies: 1 comment 18 replies
-
Hi @igmtink Try to write if (!response.ok) {
const data = await response.json()
}
// ... |
Beta Was this translation helpful? Give feedback.
18 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I think the type error will be resolved by changing ResponseType as follows.