Error Detection Parameters
The parameters in this section configure the connector to detect errors and respond appropriately, in cases where the web server returns an HTTP 200 (OK) status code even though an error has occurred.
You can set these parameters in the TaskName section. For example:
[MyTask] ErrorPageUrlRegex=.*/login.html ErrorPageCssSelector=#authresult ErrorPageRegex=.*failed.* ErrorPageHttpErrorCode=401
To specify different settings for different URLs retrieved by a single fetch task, use the ErrorPageSections parameter to define multiple sections. Then, set the ErrorPageUrlRegex parameter in each section. For example:
[MyTask] ... ErrorPageSections0=LoginError ErrorPageSections1=... [LoginError] ErrorPageUrlRegex=.*/login.html ErrorPageCssSelector=#authresult ErrorPageRegex=.*failed.* ErrorPageHttpErrorCode=401