http2: Use 'CURLcode result' for curl result codes