hstaudacher / osgi-jax-rs-connector

An OSGi - JAX-RS 2.0 Connector, software repository available on the link below
http://hstaudacher.github.io/osgi-jax-rs-connector
Other
191 stars 98 forks source link

how to disable default jetty error pages in Felix http service #66

Closed sarwarbhuiyan closed 9 years ago

sarwarbhuiyan commented 9 years ago

I'm setting errors in the responses but Felix Http service is showing me the default error html pages for 400s and 500s. Is there an easy way to override this behaviour from our side or any known way to let Felix Http service? I've raised an issue with Felix JIRA as well

hstaudacher commented 9 years ago

The connector is only responsible for sending the right status code. If you would like to have custom HTML I would suggest to take a look at the Jersey MVC Feature: https://jersey.java.net/documentation/latest/mvc.html