Error state page
Show a special page when an API error happens
Create a special page that will be displayed when an API error happens in a specific app page.
By default, Bravo will show a generic error page (including the HTTP error code) when an API error happens. With this error page, you can customize this error page, and connect it to an app screen returning data from API, so when an API error happens, this custom error page is displayed.
There are two options to set it up:
]in the page-level to create an error page that will be displayed when any API error happens (4XX or 5XX).
]in the page-level to create an error page that will be displayed when a specific API error happens, replacing XXX with the corresponding error code. For instance,
Then, relate the error page to a page bound to API data. This page needs to have the
]tag. groupname should be replaced with a name of your choice, that creates the relationship between the two pages.
Pages with error state tags are special and have some limitations: - It's not possible to combine other tags with error stage tags. - It's not possible to bind data in pages with error state tags.
Duplicate the file below to see how to set it up!