You should probably create a dictionary to do that, something like:

```python
STATE_DESCRIPTIONS = {
0: 'Starting Up',
1: 'Primary',
...
}
```
and then you'll be able to do:
```python
status = STATE_DESCRIPTIONS[state]
```