How do I display response or errors from a query or API?

Use-case: Is it possible to display error or response data from a query on the Appsmith app?

We can display this by using the <<query_name>>.data property:

Here’s a screenshot of how the responses of two APIs (Api1, Api2) are displayed on the text widget using {{}}, {{}}

Have you tried mapping an error message event with response meta {{Api1.responseMeta}}? I use {{query.responseMeta.headers }} to access info there, I believe you can do something similar for error messages.