def raise_for_status(<EOL>status: int, headers: MutableMapping, data: MutableMapping<EOL>) -> None:
if status != <NUM_LIT:200>:<EOL><INDENT>if status == <NUM_LIT>:<EOL><INDENT>if isinstance(data, str):<EOL><INDENT>error = data<EOL><DEDENT>else:<EOL><INDENT>error = data.get("<STR_LIT:error>", "<STR_LIT>")<EOL><DEDENT>try:<EOL><INDENT>retry_after = int(headers.get("<STR_LIT>", <NUM_LIT:1>))<EOL><DEDENT>except ValueError:<EOL><INDENT>retry_after = <NUM_LIT:1><EOL><DEDENT>raise exceptions.RateLimited(retry_after, error, status, headers, data)<EOL><DEDENT>else:<EOL><INDENT>raise exceptions.HTTPException(status, headers, data)<EOL><DEDENT><DEDENT>
Check request response status

Args:
    status: Response status
    headers: Response headers
    data: Response data

Raises:
    :class:`slack.exceptions.RateLimited`: For 429 status code
    :class:`slack.exceptions:HTTPException`: