---
sidebar:
  label: roboto.action_runtime.exit_codes
  order: 2
title: roboto.action_runtime.exit_codes
---
## Module Contents

### ExitCode

```python
class roboto.action_runtime.exit_codes.ExitCode
```

`from roboto.action_runtime import ExitCode`

[Source](https://github.com/roboto-ai/roboto-python-sdk/blob/main/src/roboto/action_runtime/exit_codes.py#L10-L35)

Bases: `enum.IntEnum`

Exit code an action's process ends with: whether it succeeded and, if not, why.

Every code but `Success` takes its value and meaning from the `sysexits.h` convention of Unix systems. An action exits with one through `sys.exit`, as in `sys.exit(ExitCode.DataError)`, and any code but `Success` fails the invocation. [`PrepareEnvException`](/docs/reference/python-sdk/roboto/action_runtime/exceptions#roboto.action_runtime.exceptions.PrepareEnvException) carries one.

**Attributes**

- **ExitCode.ConfigurationError** = `78`: The action's configuration is invalid, such as a required environment variable that is unset (`EX_CONFIG`).

- **ExitCode.DataError** = `65`: The input data was invalid, such as a file in the wrong format, corrupted, or empty (`EX_DATAERR`).

  Use it for a problem with the data the action was given, not with the action or its environment. Roboto's ingestion actions exit with it when they ran correctly but could not ingest the input file.

- **ExitCode.InternalError** = `70`: The action, or Roboto's setup for it, failed for a reason other than input or configuration (`EX_SOFTWARE`).

- **ExitCode.Success** = `0`: The action succeeded.

- **ExitCode.UsageError** = `64`: The action was invoked incorrectly, such as with a missing or malformed parameter (`EX_USAGE`).
