Enhance the Resource code to handle exceptions with appropriate HTTP 400/500 Response instead of throwing WebApplicationException, where possible.
Implemented solution. The use of WebApplicationException is limited to the constructor method for Resource.java. All other "run time" exceptions (EngineException) are caught and an Internal Server Error (500) is sent back to the client.
Confirmed with a code review of the org.openptk.jaxrs.Resource.java and child classes to confirm that the WebApplicationException is being thrown properly and/or an INTERNAL_SERVER_ERROR is being used properly.