Please follow the standard (27.5.5.4):
```
   return stream.fail()
```