How to erase the message RESTEASY003210 in the 404 Not Found error response for JAX-RS application on JBoss EAP 7.3/7.4?
Issue
- Since JBoss EAP 7.3.0, sending an HTTP request to a non-existent path will return
RESTEASY003210: Could not find resource for full path
as the HTTP response body. - We don't want to respond with a message that the product name can be guessed. How do I erase the message
RESTEASY003210
in the response body?
$ curl 127.0.0.1:8080/helloworld-rs/rest/html
RESTEASY003210: Could not find resource for full path: http://127.0.0.1:8080/helloworld-rs/rest/html
Environment
- Red Hat JBoss Enterprise Application Platform (EAP)
- 7.3.x
- 7.4.x
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.