You could also define this as:

```python
STATUS_OK = (200, 201)
```

And then do:

```python
if res.status_code in STATUS_OK:
    ...
```