def raise_for_api_error(headers: MutableMapping, data: MutableMapping) -> None:
if not data["<STR_LIT>"]:<EOL><INDENT>raise exceptions.SlackAPIError(data.get("<STR_LIT:error>", "<STR_LIT>"), headers, data)<EOL><DEDENT>if "<STR_LIT>" in data:<EOL><INDENT>LOG.warning("<STR_LIT>", data["<STR_LIT>"])<EOL><DEDENT>
Check request response for Slack API error

Args:
    headers: Response headers
    data: Response data

Raises:
    :class:`slack.exceptions.SlackAPIError`