errorBody

Returns a JSON string that represents the given error type. When the automatic interceptor is enabled, the body of the URL response will be the same as the string that returns here. When the automatic interceptor 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.