def METHOD_NAME(headers: dict[str, Any], data: Any) -> tuple[dict[str, Any], Any]:
    if isinstance(data, dict) and "error" in data:
        if data["error"] == "bad_verification_code":
            raise BadCredentialsException(200, data, headers)
        raise GithubException(200, data, headers)
    return headers, data