stream: add err.code for RST_STREAM