-
How to catch panic and return a json response? Please add an example. |
Beta Was this translation helpful? Give feedback.
Answered by
syphar
Mar 20, 2023
Replies: 1 comment 1 reply
-
There is |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
rfvygv
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
There is
CatchPanicLayer
fromtower-http
, which also includes an example of how to return a custom response.