Error

Set custom response for invalid content.

In HTTP protocol, you can send custom response messages for requests with invalid content, while for other protocols, such as SFTP or SMTP the connection is terminated.

The fields for the Error action are as seen in the following figure.

Error Action

The following table describes the fields applicable to the Error action.

FieldDescription
MessageAdd a custom response message for any invalid content.You can add a custom response message for any invalid content using one of the following options.
  • Input an HTTP response message formatted string into this action type by yielding it from the parent rule.
    Example - ‘Error message yielded by parent - %(input)s’. The %(input)s value in the HTTP error response message body carries the string yielded by the parent extraction rule.
  • Embed the message in the text box. The string must be formatted as an HTTP RFC compliant response message with status-line, header-fields, and body.
    Example - ‘HTTP/1.1 999 EXAMPLE-ERR MyHeader1: Time MyHeader2: 1116 This is an error response body

The Error action type must always be created as a leaf node - a rule without any child nodes.