you can use a sealed class for instance. but it depends on the context. are you expecting http issues? Are you acting/handling the errors, or just reporting them? Just make sure you don't cause an error event to be fired, otherwise the whole stream dies.