What is the best way to handle the error?
What I want is to get the error from server to client using rpc + react query
- Using
trycatch - Returning
c.json({ message: 'Invalid password' }, 401) - Throwing
HTTPException(401, { message: 'Invalid password' })
