throw http exception()

This function can be used to trigger an error in a profile with an event-driven Input Agent of type "HTTP" and to set the HTTP error response status code a and the response content b.

Note: If the Input Agent is set to parallel processing, an error is also triggered, but the function has no influence on the response because the response is then sent immediately, i.e. before phase 3 in which the function is executed.

Note: If a different Input Agent is used, only an error is triggered.

Parameters


Parameter

Description

a

The HTTP response status code. Note: Use the three dots to select a value that is defined in the Input Agent.

b

(optional) The content of the response. If nothing is specified here, the "Response on error" that is entered for code a in the sub-dialogue "More HTTP error codes" in the Input Agent is used. If nothing is found there, the "Response on error" in the main dialogue of the Input Agent is used.