fixes http-hello1 example
prefer RuntimeError over std::runtime_error
first bits of the channel-state fix