frankframework icon indicating copy to clipboard operation
frankframework copied to clipboard

Improve response code handling http sender

Open jjansenvr opened this issue 3 years ago • 2 comments

Reporter Jeroen Jansen van Rosendaal

Is your feature request related to a problem? Please describe. The http sender has recently been updated to accept the whole 2xx range as a success response (before it was just 200) for more control over the http responses I would like a more fine-grained http status code handling

Describe the solution you'd like For the future I would like the http sender to be able to call a forward based on the five categories

1xx informational response – the request was received, continuing process ==> ?? 2xx successful – the request was successfully received, understood, and accepted ==> Success 3xx redirection – further action needs to be taken in order to complete the request ==> ?? 4xx client error – the request contains bad syntax or cannot be fulfilled ==> Failure 5xx server error – the server failed to fulfil an apparently valid request ==> Exception

I would like the returned status code to be available as a session key so I can create logic to differentiate onm the different response codes

Describe alternatives you've considered resultStatusCodeSessionKey= true

Additional context FF 8?

jjansenvr avatar Mar 08 '21 12:03 jjansenvr