Fixing RST_STREAM, 3 error handling logic in pubsub_service.js