# status

The status method in the SurrealDB PHP SDK retrieves the current status of a remote database.

This method retrieves the current status of a remote database.

```php title="Method Syntax"
$db->status();
```

## Example usage
```php
$status = $db->status();
echo "The status code is: $status."; // 200 or 500
```

The status function returns `200` if the database is running and `500` if the database is down or cannot be reached.
