errorType

Returns the relevant `HSBotDefenderErrorType` of the given error. When the policy type is set to `HSPolicyUrlRequestInterceptionType/INTERCEPT`, you can use this function to know if the request was blocked. When the policy type is set to `HSPolicyUrlRequestInterceptionType/INTERCEPT_WITH_DELAY`, you can use this function with the response to know if the request was solved or cancelled. If the error is not related, this function will return `HSBotDefenderErrorType/unknown`.

Parameters

response

The response's body.