install a headerFilterStrategy or just write your own processor that checks the headers.
But… I think that you will get an error anyway from the remote server and camel will pass it along as you need. > On Jul 16, 2016, at 6:45 PM, knew...@gmail.com <kevin.new...@gmail.com> wrote: > > Hello, > > I am looking for some suggestions on how I might 'filter' an http route. The > general idea is to create a process that checks the http request for a valid > oauth access token and if valid, allows the route to continue. If missing or > invalid, 'something' would return an http response of 401 or 403 to the > client without completing the route (short circuit). > > I've glanced through some of the EIP but I haven't seen anything that I > could obviously use for this. > > Thanks in advance, > > Kevin > > > > -- > View this message in context: > http://camel.465427.n5.nabble.com/Filtering-or-short-circuit-a-route-tp5785185.html > Sent from the Camel - Users mailing list archive at Nabble.com.