@Provider
public class ErrorResponseProvider
extends Object
implements javax.ws.rs.ext.ExceptionMapper<Exception>
This provider handles all exceptions which are not handled by any other provider.
This is required to ensure that rest requests return a 500 instead of the html error page from OpenNMS.