I am developing REST services using camel REST-DSL [in camel documentation] component.I am successful in sending JSON request for happy path and get the response on the same using (Rest-DSL and camel servlet) combination. Now as we move forward the client may sent Rest Service request with not enough values or invalid valid request ,now I am looking for ways to send 400 status code as a response from REST DSL when request is not valid.
Please advise on the way to achieve this.