errorBody

Returns a JSON string that represents the given error type. When you call this API directly, the string matches the type you pass. Delayed automatic interception folds a solved-with-error outcome to HSBotDefenderErrorType.CHALLENGE_WAS_SOLVED for the synthetic body; non-delayed INTERCEPT returns HSBotDefenderErrorType.REQUEST_WAS_BLOCKED before the outcome is known. When automatic interception is disabled, you may replace the original URL response with the string that returns here.

Parameters

type

The error type.


Returns a JSON string that represents the given error type and (optionally) the accompanying reason for HSBotDefenderErrorType.CHALLENGE_SOLVED_WITH_ERROR.

For the original three error types the reason is ignored.