How to display data property in API response from createError? #2882
MohanDrey24
started this conversation in
Help Wanted
Replies: 1 comment
-
I would like an answer to this too. Also, how to force the error to be a JSON object, not a HTML page. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have an error handler that throws a createError:
Why does data property doesn't show in the API response? I tried hard coding it with a string but it still doesn't show up in my response.
Beta Was this translation helpful? Give feedback.
All reactions