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 of over 48,000 articles and solutions.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
