Customized NGIX error page (502)

I created a custom ngix html page (502.html). By stopping the application the reconnect mechanism does not work as expected. It shows the following error on top of the screen:

I only want to change the default ngix 502 error page but want to stay in Vaadin reconnect mechanismif the vaadin page is already shown.

By clicking on the error message the page is reloaded and the custom page is shown…

Does anyone have an idea only to change the default page? It should still return 502 because my mobile application (ios/android) is checking against the value 502:

May not a Vaadin issue - thanks in advance!

IIRC, you can add in your HTML page the Vaadin-Refresh token followed by a URL (or relative path) to prevent the error in the screenshot and redirect to the give URL. It could be done in an HTML COMMENT in the head section, like the following

<!-- Vaadin-Refresh: /myapp -->
1 Like

Thanks a lot for your help!