camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "fabrizio.spataro" <>
Subject Re: Customize the Http Response Code for REST Service
Date Fri, 25 Mar 2016 08:00:48 GMT

I had same problem and i resolve it using "onException tag" to intercept
validation error and return another http response code

Example DSL:

<camelContext ...>
        <setHeader headerName="Exchange.HTTP_RESPONSE_CODE">

View this message in context:
Sent from the Camel - Users mailing list archive at

View raw message