[ https://issues.apache.org/jira/browse/CXF-6843?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15229772#comment-15229772 ]
Jim Ma commented on CXF-6843: ----------------------------- yes. There is an ExceptionMapper in the test which maps exception to 406: {code} @Provider public class TestExceptionMapper implements ExceptionMapper<Throwable> { @Override public Response toResponse(Throwable throwable) { Writer result = new StringWriter(); PrintWriter printWriter = new PrintWriter(result); throwable.printStackTrace(printWriter); return Response.status(Status.NOT_ACCEPTABLE).entity(result.toString()).build(); } } {code} It requires default.wae.mapper.least.specific to false to get this work. I'll close this issue and this doesn't needs a fix. > http 406 not acceptable should be returned if query parameter value can't be > converted > --------------------------------------------------------------------------------------- > > Key: CXF-6843 > URL: https://issues.apache.org/jira/browse/CXF-6843 > Project: CXF > Issue Type: Bug > Components: JAX-RS > Affects Versions: 3.1.5 > Reporter: Jim Ma > Assignee: Sergey Beryozkin > Fix For: 3.1.6, 3.2.0 > > > For query parameter conversion exception, it should return 406 http status > in response. -- This message was sent by Atlassian JIRA (v6.3.4#6332)