> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://docs.nvidia.com/nemo/relay/llms.txt.
> For full documentation content, see https://docs.nvidia.com/nemo/relay/llms-full.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs.nvidia.com/nemo/relay/_mcp/server.

# Enum Nemo Relay Status

> Status codes returned by all FFI functions.

Generated from `cargo doc --no-deps -p nemo-relay -p nemo-relay-adaptive -p nemo-relay-ffi`.

```rust
#[repr(i32)]pub enum NemoRelayStatus {
    Ok = 0,
    AlreadyExists = 1,
    NotFound = 2,
    ScopeStackEmpty = 3,
    GuardrailRejected = 4,
    Internal = 5,
    NullPointer = 6,
    InvalidJson = 7,
    InvalidUtf8 = 8,
    InvalidArg = 9,
}
```

Status codes returned by all FFI functions.

Every `extern "C"` function in this library returns an `NemoRelayStatus`. On non-`Ok` returns, call [`nemo_relay_last_error`](/reference/api/rust-library-reference/nemo-relay-ffi/error/fn-nemo-relay-last-error) on the same thread to retrieve a human-readable error message.

## Variants

### `Ok = 0`

<pre />

Operation completed successfully.

### `AlreadyExists = 1`

<pre />

A resource with the given name already exists.

### `NotFound = 2`

<pre />

The requested resource was not found.

### `ScopeStackEmpty = 3`

<pre />

The scope stack is empty (no active scope).

### `GuardrailRejected = 4`

<pre />

A guardrail rejected the operation.

### `Internal = 5`

<pre />

An internal runtime error occurred.

### `NullPointer = 6`

<pre />

A required pointer argument was null.

### `InvalidJson = 7`

<pre />

A JSON string argument could not be parsed.

### `InvalidUtf8 = 8`

<pre />

A C string argument contained invalid UTF-8.

### `InvalidArg = 9`

<pre />

A function argument had an invalid value (e.g. malformed UUID).

## Trait Implementations

### `impl Clone for NemoRelayStatus`

<pre />

#### `clone`

<pre />

#### `clone_from`

<pre />

### `impl Debug for NemoRelayStatus`

<pre />

#### `fmt`

<pre />

### `impl From<&FlowError> for NemoRelayStatus`

<pre />

#### `from`

<pre />

### `impl PartialEq for NemoRelayStatus`

<pre />

#### `eq`

<pre />

#### `ne`

<pre />

### `impl Copy for NemoRelayStatus`

<pre />

### `impl Eq for NemoRelayStatus`

<pre />

### `impl StructuralPartialEq for NemoRelayStatus`

<pre />