Uploaded image for project: 'Camel'
  1. Camel
  2. CAMEL-8104

rest-dsl - Allow custom error responses as-is without invoking the output binding

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 2.14.0
    • 2.14.1, 2.15.0
    • camel-core
    • 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.

      Attachments

        Activity

          People

            davsclaus Claus Ibsen
            davsclaus Claus Ibsen
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: