Jersey returns 404 with any error status code?
The default behavior with Jersey, when there is an error status (4xx, 5xx), is to use the servlet’s Response.sendError, which results in a redirect to an error page. Since there is no error page set up, it results in a 404. We can change this behavior by setting the Jersey property ServerProperties.RESPONSE_SET_STATUS_OVER_SEND_ERROR You can do … Read more