# net_http_status

Get HTTP status code from a URL.

```rhai
net_http_status(url: &str) -> i64
```

## Examples

```rhai
let status = net_http_status("https://api.example.com");
if status == 200 {
    print("OK");
}
```

```rhai
let code = net_http_status("https://example.com/page");
if code == 404 {
    print("Page not found");
} else if code == -1 {
    print("Connection failed");
}
```
