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 {{}}, {{}}