Uploaded image for project: 'Undertow'
  1. Undertow
  2. UNDERTOW-1735

Predicate Language response-code handler doesn't allow custom status text

    Details

    • Type: Feature Request
    • Status: Open (View Workflow)
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 2.1.3.Final
    • Fix Version/s: None
    • Component/s: Core, Predicate Language
    • Labels:
      None
    • Affects:
      Documentation (Ref Guide, User Guide, etc.)

      Description

      Using the predicate language with the response-code() handler does not provide a way to set the status text to return.

      path('/secret') -> response-code(403)
      

      It would be nice to allow something like this: 

      path('/secret') -> response-code(value=403,text='go away')
      

       

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                flavia.rainone Flavia Rainone
                Reporter:
                bdw429s Brad Wood
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated: