How to customize the http response code when the requested context does not exist on JBoss EAP 7
Issue
- Is it possible to customize the HTTP response code which EAP 7 returns when the requested context does not exist on JBoss EAP 7? Currently 404 HTTP response code is returned when an application is not deployed or disabled. We'd like to change it to return a 500 HTTP response code instead.
Environment
- Red Hat JBoss Enterprise Application Platform (EAP)
- 7.x
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.