Hello,
I'm trying to display a custom error message to the user when a service call returns a 400 error.
Indeed, our services return a 400 error code with a specific message.
Example:
{"errors":{"":["There should have only one occurrence of each language: fr 2 occurrences","There should have only one default language in Contents"]},"type":"https:/ /tools.ietf.org/html/rfc7231#section-6.5.1","title":"One or more validation errors occurred.","status":400,"traceId":"00-367e5cbb1a26ddb093fc31b10d23115c-53881c67df805217-00 "}
In case of error, the user sees only the title content. (only Admin can see the entire content result on the monitoring interface)
How can i do to show him the errors content?
Thanks a lot for your answer.