HTTP Status Code 401/403 instead of 500
Issue
We have installed Red Hat JBoss Fuse and are running a Camel route, with CXF as a consumer endpoint, specified as WSDL using the Provider
Out route is secured with both SSL and Basic Authentication, using interceptors
We're using the HTTP headers to provide username/password for Bassc Authentication.
Take away the fact we are sending SOAP, we'd expect HTTP Status 401/403 if authentication/authorization fails.
But because it's WS/SOAP, he SOAP-HTTP binding seems to mandate an HTTP 500 status.
Is there any way we can configure this route to return 401/403. I've seen some sample code using FaultInterceptors, but not sure how 'standard' out-of-he-box they would come with FUSE?
Environment
- JBoss Fuse 6.0
- JBoss Fuse 6.1
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
