I wanted to distinguish between "deployment pending" and "deployment failed" and display a loading or a error page respectively. Therefore I tried to set the value default-response-code in the undertow configuration.
<host name="default-host" alias="localhost" default-response-code="503">
But when I start the server I still receive 404's when accessing the address of my deployment during the deployment process.
Did I miss something or is there a better way to show a loading page during a the deployment process?