How to customize the http response code when the requested context does not exist on JBoss EAP 7

Solution Verified - Updated -

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.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content