Details
-
Improvement
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
2.14.0
-
None
-
Unknown
Description
See
http://camel.465427.n5.nabble.com/Rest-DSL-OutType-in-case-of-error-message-problem-tp5759864.html
We should allow end users to define custom error messages as-is to be used as response.
We add a flag that enables this out of the box. Then the end user just set a custom body and set the HTTP_RESPONSE_CODE header to >= 300 value to indicate an error. Then rest-dsl does not attempt to bind output.